0
0

Hi,

I’m a new user of fmod and I am currently using fmod 3.74. I have a few questions about error handling in fmod.
I play sound with the following func : FSOUND_PlaySoundEx(FSOUND_FREE, mSample,NULL,FALSE). This function returns me a channel number.
I would like to know when the sound is finished but the only callback I found is for the streams. Is there a way to know when a sound playback is finished ?
Second problem : sometimes when I want to play a sound a second time, I have to call FSOUND_StopSound(mChannel) to stop the sound and to call FSOUND _PlaySoundEx to launch it one more time. But the FSOUND_StopSound return false, and I don’t know why. Is there a way to get extended information about the error when StopSound returns false ?
Thanks in advance for the response.
Stéphane

  • You must to post comments
0
0

no idea?
I just want to know what false means when returned by FSOUND_StopSound. Is it just that the channel number passed in the parameter is invalid? or can it be another error?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.