How to know when a MusicPlayer is done playing a MIDI sequence ?
How to know when a MusicPlayer is done playing a MIDI sequence ?
- Subject: How to know when a MusicPlayer is done playing a MIDI sequence ?
- From: Guillaume Laurent <email@hidden>
- Date: Sat, 26 Nov 2016 00:19:34 +0100
Hi all,
Given a MusicPlayer playing a MIDI sequence, is there a way to know if it’s done playing that sequence or not ? Apparently, MusicPlayerIsPlaying() returns true as long as the player has not yet received a MusicPlayerStop() call, disregard of the fact that it may have played the whole sequence.
More specifically, I have a MusicPlayer playing a single note MIDI sequence. My problem is knowing when the player is done playing that note, but I can’t find a way to do that (short of computing the time it would take to play the note, given the beat and duration, but that’s ugly and unreliable).
Thanks for any help,
Guillaume.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden