Re: Using AudioUnit instead of AudioDevice
Re: Using AudioUnit instead of AudioDevice
- Subject: Re: Using AudioUnit instead of AudioDevice
- From: Doug Wyatt <email@hidden>
- Date: Fri, 22 Jun 2001 21:11:11 -0400
On Thursday, June 21, 2001, at 12:49 PM, email@hidden
wrote:
>
I have some code that can open an AudioDevice and play sound through it,
>
however, I need the ability to play different sample rates. It seems
>
AudioDevice is more linked to the hardware in what sample rates it
>
supports. So I cannot change the sample rate away form 44.1khz. Does
>
using AudioUnit allow some sort of software SRC that will upsample my
>
data?
>
Is there a sample of code that shows how to use this? The sample I
>
currently have will just crash when I try to use it...
>
I take it you're using the default output audio unit.
There's a known bug where you have to explicitly set either the input
proc or the render notify proc of the unit to NULL; I forget which ...
Doug
_____________________
Doug Wyatt
Core Audio
Apple
408.974.9314