• 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: Bill Stewart <email@hidden>
  • Date: Tue, 28 Jan 2003 21:45:43 -0800

You have to give a player a sequence to play...

MusicPlayerSetSequence

The Error Code is:
kAudioToolboxErr_NoSequence

It is defined in MusicPlayer.h

bill

On Tuesday, January 28, 2003, at 04:19 PM, Michael Norris wrote:

> Hi there,
>
> Just getting into CoreAudio for the first time. I'm testing out the
> MusicPlayer APIs (and lamenting over the poor state of documentation!)
> I'm also attempting to put some Cocoa wrappers around them, just for
> fun.
>
> 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?)
>
> I wonder if this is something to do with the fact that it's not yet
> hooked up to an AUGraph. I had read in the coreaudio-api archives that
> by default MusicPlayer uses the inbuilt DLS synth, which is fine for
> testing purposes. Is that correct, or do I still need to hook it up to
> an AUGraph or MIDIEndpoint?
>
> Cheers
> -mike
> _______________________________________________
> 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.
>
>
--
mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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: AU - does Latency imply equal TailTime?
  • Next by Date: Re: MusicPlayerStart returns -10854
  • Previous by thread: MusicPlayerStart returns -10854
  • Next by thread: Re: MusicPlayerStart returns -10854
  • Index(es):
    • Date
    • Thread