i have a problem with FMOD_System_PlaySound.
i create a sound like this:
FMOD_System_CreateStream(pSystem,pchar(AData.AFileName),FMOD_SOFTWARE or FMOD_LOOP_OFF or FMOD_2D,nil,pSound));
this works fine, but after opening 10-15 MP3s, FMOD_System_PlaySound hangs, that meens, function does not return.
so my question is, what FMOD_System_PlaySound does internally?
thanx for help.
- Hr.Geheimrat asked 9 years ago
I have the same problem, after I do playSound() exactly 14 times it stops playing audio and returns the error code FMOD_ERR_OUTPUT_DRIVERCALL.
Here is the code for the audio handling: http://pastebin.com/m515b5e29
and then I do MediaBank::Singleton().PlaySound("mysound.wav"); someplace else.
As I said, the 14’th time this is called, the error comes. Im thinking it has to do with channels. Is playSound(FMOD_CHANNEL_FREE, mySound, false, NULL); enough? Or do I have to have a system for channels also? According to the tutorials, it should work..
Please login first to submit.