MusicPlayerStop kills default AU callback?
MusicPlayerStop kills default AU callback?
- Subject: MusicPlayerStop kills default AU callback?
- From: Alex Eddy <email@hidden>
- Date: Thu, 8 Apr 2004 16:06:26 -0700
Hi, this is probably an extremely simple problem but I'm just getting
into CoreAudio so please bear with me:
I want to play a MIDI tune and synthesize audio simultaneously. So I've
taken the PlaySequence and DefaultOutputUnit examples from the CASDK
1.3.1 and put the guts of both into my project. I start the MIDI going
(which sets up an AUGraph exactly as in that sample) and then the audio
(also sets up the default output exactly as in the sample.)
This works fine, the two sound sources play together with no problems.
Now I need to pause the MIDI when certain events occur. I call
MusicPlayerStop to pause and MusicPlayerStart to unpause, that works
fine. However, as soon as the music is stopped, the audio stream also
dies-- its rendering callback is no longer called. This is not what I
want.
What's the relation of the MusicPlayer to the default audio output? Am
I going about this wrong?
thanks,
-alex
_______________________________________________
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.