0
0

Hello,
is there any function or result value that returns in bool or int value
the current state of fmod?

for example:

if ( (FSOUND_IS_PLAYING(handle) )
{
play
}

  • You must to post comments
0
0

And one more thing….

Im using this code to play my audio file:
[code:1dc7qpr3]
FSOUND_Init (44100, 32, 0);
handle=FSOUND_Sample_Load (0,"1.mp3",FSOUND_LOOP_NORMAL, 0,0);
FSOUND_PlaySound ( 0,handle);
[/code:1dc7qpr3]

After the 2nd loop my SDL application’s lagging & freezing my pc when exiting.

Is there any other way to play this file ? (some c++ example would help).

  • You must to post comments
0
0

are you calling FSOUND_Init each time you want to play a sound? That is a really bad idea and you should call it once at the start of your application.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.