Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How to uniquely identify audio device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to uniquely identify audio device



Date: Thu, 20 Dec 2007 11:47:50 -0800
From: Jeff Moore <email@hidden>
Subject: Re: How to uniquely identify audio device
To: CoreAudio API <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Odd. My version of <CoreAudio/AudioHardware.h> says:
    @constant       kAudioDevicePropertyTransportType
                        A UInt32 whose value indicates how the
AudioDevice is connected to the CPU.
                        Constants for some of the values for this
property can be found in
                        <IOKit/audio/IOAudioTypes.h>.

The Tiger and Leopard versions of this header file do indeed provide a complete sentence there... but the document that Shaun cites does have missing text. Thanks for pointing out the problem!


-murray

On Dec 20, 2007, at 11:14 AM, Lorenzo Thurman wrote:

Shaun Wexler wrote:
On Dec 20, 2007, at 10:28 AM, Lorenzo Thurman wrote:
I have just one followup question on this topic:
How do I identify which device is the built-in audio Apple
hardware? There don't appear to be any methods that would tell me
that a particular piece of hardware is the built-in hardware. By
the way, I'm looking at this page here as it seems most relevant
to what I'm doing:
http://tinyurl.com/3d4s6n
Is there somewhere else I need to look? Is there sample code that
might help?
TIA
Examine the device's Transport Type.
Thanks for the reply. I'll look into this later, but I guess I found
one of those occasional documentation bugs:

"kAudioDevicePropertyTransportType
  A UInt32 whose value indicates how the AudioDevice is connected
to the CPU. Constants for some of the values for this property can
be found in ."

I guess I can find the constants for the property somewhere in one
of the header files.



--

Jeff Moore
Core Audio
Apple

_______________________________________________ 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


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.