Analog audio capture question
Analog audio capture question
- Subject: Analog audio capture question
- From: kamaldeep tumkur <email@hidden>
- Date: Fri, 04 Nov 2011 20:32:52 -0700
Hello,
I am using CoreAudio APIs to capture analog audio through the line in jack and write out a file.
Just realized that my recorded file is from the built in microphone instead of the line in jack.
I have a Macbook Pro7,1.
I had used the AudioObjectGetPropertyData call to get the property kAudioHardwarePropertyDefaultInputDevice and set it as the current device on the AudioUnit.
How do I select the line in device to be the default device?
I went into System Preferences -> Sound and changed the audio port to be input type instead of output type.
When I went back to debugging my code, it still seemed to be picking the built in microphone as the default input.
What am I missing here?
I tried enumerating the devices available to the system using kAudioHardwarePropertyDevices in the AudioObjectGetPropertyData call.
Not sure if this is the correct way of doing it, as I am not sure how to tell if a device is actually the line in input device?
Appreciate your help with this.
Thanks
_______________________________________________
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