• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to know when a MusicPlayer is done playing a MIDI sequence ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to know when a MusicPlayer is done playing a MIDI sequence ?
      • From: Matt Grippaldi <email@hidden>
  • Prev by Date: Re: : Manually initializing an AUv3 Extension?
  • Next by Date: Re: How to know when a MusicPlayer is done playing a MIDI sequence ?
  • Previous by thread: Re: : Manually initializing an AUv3 Extension?
  • Next by thread: Re: How to know when a MusicPlayer is done playing a MIDI sequence ?
  • Index(es):
    • Date
    • Thread