• 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: Trying to use an AUConverter with an input callback (Leopard 10.5.8)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to use an AUConverter with an input callback (Leopard 10.5.8)


  • Subject: Re: Trying to use an AUConverter with an input callback (Leopard 10.5.8)
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 22 Sep 2009 11:15:27 -0700

On Sep 21, 2009, at 17:00 , John Sheehy wrote:
Hi all,

I've managed to set up the default AUHAL output unit for input, and can record @ whatever h/w sample rate is at without problems. What I need however is to convert the incoming sample rate to 16Khz. Is there any way I can do this transparently, as in connect the default output unit's input bus to an AUConverter, setting the appropriate stream formats on both sides of the converter ?

Ideally, I would have one callback, inside which I'd call AudioUnitRender, and the audio it would render would have already gone through the converter. Is this possible ?
I've tried various combinations of setting render callback with various bus specifications on the input unit and the AUconverter component, but to no avail.


The only examples I've been able to find all end up in an output unit, but as outbound SRC seems to be transparent in Leopard, I haven't needed to worry about that side of things.

I'd really appreciate it if someone could tell me this is definitely possible, and even better point me in the direction of any sample code or tutorial that achieves this..

There is no way to perform sample rate conversion on input with AUHAL. Some alternatives:


- use an audio queue
- capture your input at the hardware sample rate to a ring buffer; on another thread perform the rate conversion


Doug

_______________________________________________
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


  • Follow-Ups:
    • Re: Trying to use an AUConverter with an input callback (Leopard 10.5.8)
      • From: John Sheehy <email@hidden>
References: 
 >Trying to use an AUConverter with an input callback (Leopard 10.5.8) (From: John Sheehy <email@hidden>)

  • Prev by Date: Re: RemoteIO unit at beginning and end of an AUGraph
  • Next by Date: Re: RemoteIO unit at beginning and end of an AUGraph
  • Previous by thread: Trying to use an AUConverter with an input callback (Leopard 10.5.8)
  • Next by thread: Re: Trying to use an AUConverter with an input callback (Leopard 10.5.8)
  • Index(es):
    • Date
    • Thread