• 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
Analog audio capture question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: How to use REZ to create resource combining x86 and x64?
  • Next by Date: Re: How to use REZ to create resource combining x86 and x64?
  • Previous by thread: Re: How to use REZ to create resource combining x86 and x64?
  • Next by thread: MusicPlayer looping madness
  • Index(es):
    • Date
    • Thread