0
0

hello,

I succesfull played a song with the basic commands and then get the callback function called when sound ends…but my application freezes after callback function is done…

[code:3jqf4zza]
function ChannCallBack(channel: FMOD_CHANNEL; evdata: Cardinal; callbacktype: Cardinal; command: Integer; commanddata1, commanddata2: Cardinal): FMOD_RESULT; stdcall;
begin
MessageBox(0, ‘End’, ‘Test’, MB_OK);

Result := FMOD_OK;
end;[/code:3jqf4zza]

[code:3jqf4zza]
retorno := FMOD_System_PlaySound(sys, FMOD_CHANNEL_REUSE, Sound1, False, Channel1);
ERRCHECK(retorno);

retorno := FMOD_Channel_SetCallback(Channel1,
FMOD_CHANNEL_CALLBACKTYPE_END,
ChannCallBack, 0);
ERRCHECK(retorno);

retorno := FMOD_Channel_SetPaused(Channel1, False);
ERRCHECK(retorno);[/code:3jqf4zza]

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.