MusicPlayerStart returns -10854
MusicPlayerStart returns -10854
- Subject: MusicPlayerStart returns -10854
- From: Michael Norris <email@hidden>
- Date: Wed, 29 Jan 2003 13:19:52 +1300
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.