• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Flush existing sound data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flush existing sound data?


  • Subject: Re: Flush existing sound data?
  • From: Hari Seldon <email@hidden>
  • Date: Wed, 30 Aug 2006 18:13:27 -0400


Thank you very much for the help. I now have my audio streaming smoothly.

Quoting William Stewart <email@hidden>:

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


References: 
 >Flush existing sound data? (From: Hari Seldon <email@hidden>)
 >Re: Flush existing sound data? (From: William Stewart <email@hidden>)

  • Prev by Date: Re: CoreMIDI SysEx & MIDIMonitor
  • Next by Date: Re: InputCallbacks and buffer size
  • Previous by thread: Re: Flush existing sound data?
  • Next by thread: AU vs VST plugin: algorithm behaviour
  • Index(es):
    • Date
    • Thread