• 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: Downsampling / channel reduction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Downsampling / channel reduction


  • Subject: Re: Downsampling / channel reduction
  • From: Peter Rebholz <email@hidden>
  • Date: Tue, 3 Jun 2008 15:13:46 -0500

On Jun 3, 2008, at 2:44 PM, Jens Alfke wrote:
Sounds like you need an AudioConverter.
Or if you're writing the audio to a file, ExtAudioFile will handle format conversions for you automatically.


On 3 Jun '08, at 12:26 PM, Bill Cunning wrote:
I was looking at the varispeed unit, but the only samples show that being used on the application side of hardware output .. can a graph be created with a varispeed unit on the application side of hadware input, keeping the same callback type of thing so that I can get at the raw (donwsampled) audio data?


If you want to do the sample rate conversion before writing to file you should be able to create an instance of AUConverter, add it to your AUGraph (if you have one) or attach a render callback to it's input which will provide it data from the input buffer. Once you've done that you can just call AudioUnitRender on the converter unit to get the down-sampled data.

See the CAPlayThrough example for more details if this setup is unfamiliar.

Peter
_______________________________________________
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: 
 >Downsampling / channel reduction (From: "Bill Cunning" <email@hidden>)
 >Re: Downsampling / channel reduction (From: Jens Alfke <email@hidden>)

  • Prev by Date: AUTimePitch and AUGraph
  • Next by Date: Re: MIDI Transpose?
  • Previous by thread: Re: Downsampling / channel reduction
  • Next by thread: Downsampling / channel reduction
  • Index(es):
    • Date
    • Thread