• 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
Re: MusicPlayerIsPlaying() : is it done yet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicPlayerIsPlaying() : is it done yet?


  • Subject: Re: MusicPlayerIsPlaying() : is it done yet?
  • From: Christopher Corbell <email@hidden>
  • Date: Thu, 24 Jul 2003 12:12:55 -0700

On Thursday, July 24, 2003, at 10:37 AM, Roy Lovejoy wrote:

They work wonderfully-

I spoke too soon.. Apparently, MusicPlayerIsPlaying seems to want to keep the party going by
_NEVER_ returning false..

Boolean stillPlaying = false;
err = MusicPlayerIsPlaying(player, &stillPlaying);

stillPlaying is true, even long after the end of the midi sequence is over.

is there anyway of determining when the sequence is over, after issuing a MusicPlayerStart() ?
_______________________________________________

I just keep track of the sequence duration (by getting the timestamp of the last event)
and use MusicPlayerGetTime() to see when time's up.

I'm not sure but I think MusicPlayerIsPlaying() will return false when the
sequence isn't playing. :-)

- Christopher
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >MusicPlayerIsPlaying() : is it done yet? (From: Roy Lovejoy <email@hidden>)

  • Prev by Date: Re: LAP : AU music device needs Audio & MIDI
  • Next by Date: Re: Audio Device minimum buffer size
  • Previous by thread: MusicPlayerIsPlaying() : is it done yet?
  • Next by thread: Re: MusicPlayerIsPlaying() : is it done yet?
  • Index(es):
    • Date
    • Thread