0
0

I’d like to be able to stop playback within a sync call back event for a stream, however when I try to do anything such as calling FSOUND_Stream_Stop fmod hangs…

The sync points are added using FSOUND_Stream_AddSyncPoint so the return parameter of the callback function is ignored, so this won’t do the job.

I know that it’s possible to modify the stream and add tags into it but I can’t do this because I need to be able to store cue-out points separately from the original file as there could be multiple cue-out points and custom cue-out points for a given audio file. The audio files in this instance are fbr mp3, although I am considering using ogg files instead.

Anybody have any idea how I can accurately and quickly stop playout at a given time/sample point? Posting (windows) messages won’t nearly be accurate enough.

(fmod 3.71, win32, delphi)

[edit… ok, I’ve just read where I should have posted this… 👿 ]

  • You must to post comments
0
0

OK, thanks for that Brett.

What can I safely get away with doing to the stream in the callback?

Just asking because if I’m able to mute the stream within the callback (thereby getting the accuracy required) and then send a message to the main app to stop and close the stream (at a convenient time for it), then this is quite good enough for what I need.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.