Re: Callbacks with MusicPlayer
Re: Callbacks with MusicPlayer
- Subject: Re: Callbacks with MusicPlayer
- From: Loïc Dequidt <email@hidden>
- Date: Fri, 14 Mar 2003 10:02:14 +0100
I am quite new to programming, so maybe I'll say something stupid...
But, while I was myself experimenting with a kind of MIDI player that
would send data by blocks, I faced the same problem. I wanted my
application to be called to send a new block when the previous one was
about to be finished. What I did was to create a private virtual MIDI
destination for my player, and assign it as the destination for a
special track that was be dedicated to messages for calling my player.
That way I use the 'MIDIReadProc' of my player as a callback function.
I hope that was to some help!
- Looc
I was digging through the MusicPlayer header files earlier today to see
if there existed a way of installing a callback when a MusicSequence
finishes playing. I then noticed some of the discussion on
coreaudio-api last week about future plans with callbacks and
MusicPlayer, Basically, I want to dispose a sequence as soon as it's
finished playing. Is there currently any way of doing that without
constantly checking to see? (I suppose I could install a timer, but
that's a bit yuck.) Or am I going to have to wait until the next
revision of CA?
-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.