multiple instances of a sound #830
Unanswered
stanfield-dev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For use in games, would it be possible to make an equivalent of ma_engine_play_sound() that accepts a pointer to data rather than a file on disk? This function is so simple to use and avoids all of the hoop jumping required with the resource manager. Losing access to it if you don't want to be pulling files off disk is a killer.
Till then, any idea why I'm getting the choppy and unreliable sound output from the following? I can't find any documentation describing the correct way to use multiple ma_sound objects, so this is how I've gone about it. Is a compiled-in best guess as to the maximum number of simultaneous sounds I'll ever need really how it's supposed to be done?
Sound gets loaded, a batch of ma_sound's built ahead of time:
Game objects fire a projectile which triggers a request to play the associated sound:
Here is the result:
[url](https://youtu.be/gDDdq3RAOfw)
Beta Was this translation helpful? Give feedback.
All reactions