Re: setting up AudioUnit for interleaved format
Re: setting up AudioUnit for interleaved format
- Subject: Re: setting up AudioUnit for interleaved format
- From: William Stewart <email@hidden>
- Date: Mon, 2 May 2005 11:26:55 -0700
The current SDK (in both Tiger and 1.3.4) establishes V2 audio units.
In fact we explicitly removed some code in the Tiger SDK so this
question would no longer arise.
Basically, the host is responsible for setting formats, not the AU.
The AU describes to the host what its capabilities are. As Chris
describes, the canonical format for Audio Units is a non-interleaved
format.
If you want to process data as interleaved, you will have to (and can
of course) interleave the de-interleaved data that you receive from
the host, process it, then de-interleave *back* to the de-interleaved
format that the host is asking you to produce. The AudioConverter API
could be used to do this interleave and deinterleave
On 02/05/2005, at 2:59 AM, Elvio Magliocca wrote:
Hi,
I've installed coreaudio.sdk.1.3.4 and the examples shows the
"inNumChannels".
The AU template in Xcode show the same methods of interleaved channel,
so I suppose that my AudioUnit version is 1.
No - this is incorrect. You are building a V2 AudioUnit. Look, this
is more confusing than it is worth to explain - there is no V1
AudioUnit :-)
Bill
Where I can find example of AU2? How I can create AU version 2?
Regards
Elvio
--------- original message ------
Chris Rogers wrote:
The current (version 2) AudioUnit specification *requires* non-
interleaved format for all inputs
and outputs. The inNumChannels is legacy supporting the old and
deprecated version 1.
So, you'll have to find a way to do your work non-interleaved. If
you require access to
multiple channels of input to do your processing then you'll need
to look into overriding
the Render() method, although you're still dealing with non-
interleaved buffers...
Chris Rogers
Core Audio
Apple Computer
On Apr 30, 2005, at 7:23 PM, Hae-seong, Zo wrote:
Hi,
I'm developing Audio Unit plug-in,
but I don't know how I can use interleaved format.
I want to get inputs as interleaved stereo channel, and give
outputs as same format.
Namely, inNumChannels of Process() should be 2, but I don't know
how to set it up.
Could anyone help me?
Thanks in advance.
-----
Hae-seong, Zo.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40tin.it
This email sent to email@hidden
_______________________________________________
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