0
0

I play a sound with:

FMOD_System_CreateStream(fmodsystem, pchar(fn), FMOD_SOFTWARE or FMOD_ACCURATETIME, nil, fmodsound);
FMOD_System_PlaySound(fmodsystem, FMOD_CHANNEL_FREE, fmodsound, false, fmodchannel);
FMOD_Channel_SetCallback(fmodchannel, FMOD_CHANNEL_CALLBACKTYPE_END, OnSongEnd, 0);

The OnSongEnd function is:

function OnSongEnd(channel: FMOD_CHANNEL; evdata: Cardinal; callbacktype: Cardinal; command: Integer; commanddata1, commanddata2: Cardinal): FMOD_Result; stdcall;
begin
Result := FMOD_OK;
end;

Once the song is played and this event is called, the whole program freeze.

I use fmod 0.4.6.1.6

Any idea?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.