• 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
Enumerating and switching audio devices (NEWBIE)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enumerating and switching audio devices (NEWBIE)


  • Subject: Enumerating and switching audio devices (NEWBIE)
  • From: Lorenzo Thurman <email@hidden>
  • Date: Mon, 7 Mar 2005 14:00:29 -0600

I'm new to this audio stuff, so I apologize for what is probably a simple question, but here goes:

I'm writing an app that will enumerate the audio devices on a system, determine which devices are output and/or input and then allow the user to switch between devices as desired. I found some sample code on Apples site, ComplexPlaythru, which pretty does what I want, but its all in C++ and I need to brush up on that. It seems if I spend too much time in one language, I forget everything else. I've done no Java in 4 years, and I bet if I start coding there again, I'll have to start from scratch, but I digress. What confuses me about the code, is that it appears that it makes a determination as to whether a device is input or output by counting channels. Am I understanding that correctly? That seems odd. Anyway, from what I've read in "Audio and MIDI on MaOSX" and "Core Audio" (PDF's), what I should do would go something like this:

enumerate devices
determine each devices capabilities
enable IO on the selected device
switch to the selected device

Would this be just about right?
TIA


"There are 10 types of people in this world: those who understand binary, those who don't"
--Unknown


_______________________________________________
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


  • Follow-Ups:
    • Re: Enumerating and switching audio devices (NEWBIE)
      • From: Michael Thornburgh <email@hidden>
  • Prev by Date: Re: Implementing a filter driver for a USB Audio compliant device
  • Next by Date: Re: Reg: AUHAL interface with the I/O kit driver
  • Previous by thread: Re: Reg: AUHAL interface with the I/O kit driver
  • Next by thread: Re: Enumerating and switching audio devices (NEWBIE)
  • Index(es):
    • Date
    • Thread