Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing input format of an audiounit in a graph




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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >accessing input format of an audiounit in a graph (From: Daniel Oberhoff <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.