Re: accessing input format of an audiounit in a graph
Re: accessing input format of an audiounit in a graph
- Subject: Re: accessing input format of an audiounit in a graph
- From: "Daniel Oberhoff" <email@hidden>
- Date: Tue, 27 Mar 2007 14:41:31 +0200
Ah, ok. That actually makes a lot of sense. So I could solve this now
by setting all the formats in the graph while it is uninitialized.
But what is happening when I try to _read_ the format? Can I only read
the format when the unit is uninitialized too? And then, why do I not
get an error, but just a garbled format?
On 3/26/07, William Stewart <email@hidden> wrote:
On 25/03/2007, at 7:09 AM, Daniel Oberhoff wrote:
> Hi,
>
> I am trying to play audio from my sample editor app through an au
> graph which consists of effects and a standard output unit at the end.
> I set a render callback in the head unit of the graph which pulls
> data through a converter. To find the target format for the
> converter I query the head au, but I always get an invalid format,
> or rather it seems the query doesn't fill in anything. The graph is
> updated and initialized at this point (as reported by the relevant
> graph functions). Before I had naively tried to set the input
> format on the au manually as I had done when playing directly to
> the output au, but there I had gotten an error, telling me the unit
> was not initialized.
Maybe the error was telling you that the unit *was* initialised -
with most AUs you can't change their format when they are initialised.
> Now there is no way to ask a unit if it is initialized, but I
> suppose when the graph is updated and initialized the units in it
> will also?
yes - unless they aren't involved in any connections - in that case,
as soon as you connect to or from an AU, it is then initialised.
Bill
>
> Daniel Oberhoff
>
> _______________________________________________
> 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