0
0

Hi
new to this, and I keep crashing fmod. PC in C.

I have a looping normal sound (created with
FSOUND_Sample_Load(FSOUND_UNMANAGED, “audio/xyaudio2.wav”, FSOUND_NORMAL, 0);)

Whilst it is playing I am trying to modify the sample loop points.
loopstart is always 0, and I modify loopend between 0 and the samples length (as returned by FSOUND_Sample_GetLength), however as the loopend value approaches loopstart fmod crashes, not always at the same value.

How can I prevent this?

FYI channel set up with:

channel = FSOUND_PlaySoundEx(FSOUND_FREE, XYaudio1, NULL, TRUE);
FSOUND_SetLoopMode(channel,FSOUND_LOOP_NORMAL);
FSOUND_SetPaused(channel, FALSE);

Cheers

  • You must to post comments
0
0

thanks, that worked like a damn charm.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.