0
0

I tried to get a callback from fmod when its done playing a mp3 file, but i couldn’t get it working, has anybody a working example in delphi 7 ??

  • You must to post comments
0
0

declare a function like this:
[code:qntfer53]function onStreamEnd (Stream: PFSoundStream; Buff: Pointer; Length, Param: Integer): ByteBool;stdcall;[/code:qntfer53]
and call
[code:qntfer53]FSOUND_Stream_SetEndCallback(FModHan,OnStreamEnd,0);[/code:qntfer53] where fmodhan is the handle to the stream you have opened and 0 is any number you want passed to your callback as the param value

  • You must to post comments
0
0

I Tried that, but it complains about the calling convention, the callbackfunction can only be passed if it is declared with the cdecl directive.

  • You must to post comments
0
0

stdcall works for me. cdecl is for linux

  • You must to post comments
0
0

Sorry, sorry sorry ! got versions mixed up… Sorry for wasting your time, but with the latest version of fmod ik all works perfectly!

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.