0
0

Hi

I have found a bugs on FMOD 3.74:

1) if FSOUND_Load_Sample have FSOUND_LOOP_NORMAL flags and
call FSOUND_SetFrequency after the sample will be play (FSOUND_PlaySound), the sound stops:
ex 1:
smp = FSOUND_Load_Sample(FSOUND_UNMANAGED, “sample.wav”, FSOUND_2D, 0, 0);
channel = FSOUND_PlaySound(FSOUND_FREE, smp);

if(keydown("o")) FSOUND_SetLoopMode(channel, FSOUND_LOOP_OFF);
if(keydown("n")) FSOUND_SetLoopMode(channel, FSOUND_LOOP_NORMAL);

if (keydown("f") FSOUND_SetFrequency(channel,  7000); // OK change the frequency while the sound playing

ex 2:
smp = FSOUND_Load_Sample(FSOUND_UNMANAGED, "sample.wav", FSOUND_2D | FSOUND_LOOP_NORMAL, 0, 0);
channel = FSOUND_PlaySound(FSOUND_FREE, smp);

if(keydown("o")) FSOUND_SetLoopMode(channel, FSOUND_LOOP_OFF);
if(keydown("n")) FSOUND_SetLoopMode(channel, FSOUND_LOOP_NORMAL);

if (keydown("f") FSOUND_SetFrequency(channel,  7000); // ERROR stops the sound playing

2) if set FMUSIC_SetLooping to FALSE after that song played one time, the song is stopped.
ex:
module = FMUSIC_LoadSong(“song.xm”);
FMUSIC_PlaySong(module);

if(keydown(“l”)) FMUSIC_SetLooping(module, FALSE); // if do it after the module are played for one time
this cause the module stopped

3) FSOUND_CD_GetVolume not documented on CHM help : )

questions:

1) why when calls the FMUSIC_Set or FMUSIC_Get function on runtime with MIDI music on playing the program runs very slow?

2) FMUSIC_SetMasterSpeed don’t have effect during playback with MIDI music?

bye

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.