Need a callback on the MusicPlayer
Need a callback on the MusicPlayer
- Subject: Need a callback on the MusicPlayer
- From: Philippe Wicker <email@hidden>
- Date: Thu, 6 Mar 2003 08:06:29 +0100
Hi all,
This is a question/suggestion to the CoreAudio/CoreMIDI team.
When playing a sequence with the MusicPlayer, it is today possible to
direct MIDI events - on a per track basis - either to an AU or to a
MIDIEndpoint. These 2 methods involves "items" which are "public", I
mean accessible by any CoreAudio compliant application. There are
situations where you may not want your MIDI destination to be public.
To give a real case: I'd like to use the MusicPlayer to control the
playback of audio tracks. I could implement this as a MusicDevice. I
don't like this solution because 1) the AU is "public", 2) I just need
a very limited subset of the AU features to playback my audio track. I
could redirect the MIDI events to a MIDIEndpoint and do my own job in
the MIDIReadProc. I don't like it too, because the endpoint is public
and may receive events from any sources in the system.
A good solution, in my opinion, would be to add a third MIDI events
destination for a MusicPlayer track. We could pass a callback that
would be called by the MusicPlayer when MIDI events are to be played
from a track. The API could be something like
MusicTrackSetDestCallback(track, callback). This would be a very
flexible solution.
What's your feeling about this?
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.