• 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: accessing input format of an audiounit in a graph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing input format of an audiounit in a graph


  • Subject: Re: accessing input format of an audiounit in a graph
  • From: William Stewart <email@hidden>
  • Date: Mon, 26 Mar 2007 13:03:12 -0700


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


  • Follow-Ups:
    • Re: accessing input format of an audiounit in a graph
      • From: "Daniel Oberhoff" <email@hidden>
References: 
 >accessing input format of an audiounit in a graph (From: Daniel Oberhoff <email@hidden>)

  • Prev by Date: Re: Problem in SCAudioFillBuffer/OpenADefaultComponent
  • Next by Date: Re: How to print individual MusicTrack events?
  • Previous by thread: accessing input format of an audiounit in a graph
  • Next by thread: Re: accessing input format of an audiounit in a graph
  • Index(es):
    • Date
    • Thread