Flush existing sound data?
Flush existing sound data?
- Subject: Flush existing sound data?
- From: Hari Seldon <email@hidden>
- Date: Tue, 29 Aug 2006 21:08:46 -0400
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