0
0

Two questions.

I would like to know when sound playback ends for MIDI files. Is there a means of coding an equivalent for FMUSIC to FSOUND_Stream_SetEndCallback?

Can anyone provide a code sample, preferably in Delphi, for determining the duration in milliseconds of a MIDI? I’ve looked at the discussion on the board, but I know nothing about the FMUSIC terminology.

Thanks in advance for your help,
Elliott

  • You must to post comments
0
0

You can read your midi file as a stream with FSOUND_STREAM_XXX. You can then use the standard stream functions (GetLengthMs for example).

  • You must to post comments
0
0

Thanks! Treating MIDI like a stream works like a charm–and makes coding so much simpler!

Elliott

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.