Re: Flush existing sound data?
Re: Flush existing sound data?
- Subject: Re: Flush existing sound data?
- From: William Stewart <email@hidden>
- Date: Tue, 29 Aug 2006 18:45:31 -0700
AudioUnitReset (myAUConverterUnit, kAudioUnitScope_Global, 0);
On 29/08/2006, at 6:08 PM, Hari Seldon wrote:
Currently I'm using the inputProc of a AUConverter to give
interleaved sound data to a graph (converter to mixer to default
output device). When I want to stop playback I use
AUGraphDisconnectNodeInput to remove my AUConverter node from the
graph, and follow it with an AUGraphUpdate call. When I want to
start playback I simply use AUGraphConnectNodeInput and
AUGraphUpdate to reconnect the AUConverter to the graph.
The problem I'm having is that I need to figure out a way to
"reset" playback. Basically while the AUConverter is disconnected
I would like to make sure all existing data is "flushed" out of it,
so that when I want to start playback again it's all newly written
data, and none of the data that was there before I removed the node
from the graph.
Is there an easy way to Reset or Flush the input on the AUConverter?
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden