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: Monitoring input level



>the docs say that you can 
>only have  one output unit in a graph.

yea, and you are only using one device (both for input and output). In your code, some steps in 
setting up the graph are in the wrong order (in your monitor.. method).
you should add the set of nodes  to the graph and make the appropraite connections, before 
opening the graph. so the order should be:
-NewAUGraph()
-insert the nodes with their appropriate component descriptions
-connect the nodes
-AUGraphOpen()
-obtain the references to the AU's that have just been instantiated by calling augraphopen()
-enable metering
-enable I/O on the input scope / element 1 of your device
-AUGraphInitialize()
-AUGraphStart

I've just tested this with the built-in audio and it works fine. 

Karim

 _______________________________________________
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



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.