Re: MusicPlayerStop kills default AU callback?
Re: MusicPlayerStop kills default AU callback?
- Subject: Re: MusicPlayerStop kills default AU callback?
- From: William Stewart <email@hidden>
- Date: Thu, 8 Apr 2004 18:17:27 -0700
The MusicPlayer owns and plays an AUGraph. When the player is started
and stopped, it starts and stops the graph its playing... So, if you
want to keep the graph going independently of the Music Player playing
to it, then you need to start and stop the graph as well:
AUGraphStart
...
MusicPlayerStart
...
MusicPlayerStop
...
// you're all done?
AUGraphStop
Bill
On 08/04/2004, at 4:06 PM, Alex Eddy wrote:
>
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.
>
>
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
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.