• 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: MusicPlayerStart returns -10854
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicPlayerStart returns -10854


  • Subject: Re: MusicPlayerStart returns -10854
  • From: Philippe Wicker <email@hidden>
  • Date: Wed, 29 Jan 2003 06:46:55 +0100

On Wednesday, January 29, 2003, at 01:19 AM, Michael Norris wrote:

Anyway, at the moment, I'm not getting much joy with attempting to play a MusicSequence. Here's the order of events (with arguments left out):

NewMusicPlayer()
NewMusicSequence()
MusicSequenceNewTrack()
MusicTrackNewMIDINoteEvent() - add a single note with following params: note:64 channel:0 velocity:128 duration:2.0 at time 0.0
MusicPlayerPreroll()
MusicPlayerStart()

All this works and no errors are returned *except* for the very last call, MusicPlayerStart(), which returns an error of -10854. I have no idea what this error means, as I can't seem to locate a header file that explains these error codes. (Can anyone point me in this direction?)



Hi,

Definition of error -10854 can be found in MusicPlayer.h (line 191). It means that no sequence have been bound to the player. You should call:

err = MusicPlayerSetSequence (the_player, the_sequence);

before calling MusicPlayerPreroll().

Regards

Philippe Wicker
email@hidden
_______________________________________________
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: 
 >MusicPlayerStart returns -10854 (From: Michael Norris <email@hidden>)

  • Prev by Date: Re: MusicPlayerStart returns -10854
  • Next by Date: Timestamp & MyReadProc
  • Previous by thread: Re: MusicPlayerStart returns -10854
  • Next by thread: Re: MusicPlayerStart returns -10854
  • Index(es):
    • Date
    • Thread