Input Devices and System Preferences
Input Devices and System Preferences
- Subject: Input Devices and System Preferences
- From: Daniel Todd Currie <email@hidden>
- Date: Sat, 10 Jul 2004 13:33:38 -0700
I'm having some trouble using external input devices (specifically, a
Griffin iMic). No matter what device i set in the AudioUnitSetProperty
call (see below), I can only receive data from the built-in audio.
When I tap the mic that is plugged into the iMic, I check the input
levels in System Preferences and I can see that the iMic is selected
and receiving data, but in my app I get lists of near-zero data. Under
the same configuration, I tap the built-in mic and get good data even
though the built-in audio device is not selected in my app, nor in
System Preferences. I have checked that the AU is being set with the
correct device by logging the AudioDeviceID during setup. Has anyone
experienced a similar problem? Is there another way to check what
device my AU is using? Is there a part of the setup I may be omitting
that would cause a problem like this?
I'm also wondering, how does the selected input device in the System
Preferences affect the functioning of audio input in my application?
When I do:
err = AudioUnitSetProperty(inputAudioUnit,
kAudioOutputUnitProperty_CurrentDevice,
kAudioUnitScope_Global,
0,
&inputDevice,
sizeof(inputDevice));
Does that override the selected input device in System Preferences?
Thanks,
-- DTC
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.