Re: AUGraph with built-in input failing to set device (OSX)
Re: AUGraph with built-in input failing to set device (OSX)
- Subject: Re: AUGraph with built-in input failing to set device (OSX)
- From: Tim Kemp <email@hidden>
- Date: Thu, 06 Dec 2012 16:13:40 -0500
The code sample you provided is actually the old way of doing it -- it uses a now-deprecated call (AudioHardwareGetProperty).
You're quite right, sorry. Thanks for the pastie link, that's much easier to read. I have run it and I can reproduce your problem on my machine.
Are you trying to do what I assumed - that is, collect input from the default input device? This here from Chris Adamson's website (companion to his excellent Learning Core Audio book) is a fully working version of that, using an AUGraph. Note that he's using Audio Component Services to find the input component, create an AU instance of it and configure it fully before it's added to the graph: http://www.informit.com/store/learning-core-audio-a-hands-on-guide-to-audio-programming-9780321636843 (click Downloads tab. You want the Chapter 8 sample.)
Hope that helps.
On 6 Dec 2012, at 15:17, John Nastos wrote: Tim et al,
The code sample you provided is actually the old way of doing it -- it uses a now-deprecated call (AudioHardwareGetProperty).
The way that I'm getting the default device ID works fine, assuming I get a reference to the AudioUnit using `AudioComponentInstanceNew` -- however, it does not work when using `AUGraphNodeInfo`
Is it not possible to use the default input in an AUGraph like this?
- John Nastos
|
_______________________________________________
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