Re: Getting Device Information
Re: Getting Device Information
- Subject: Re: Getting Device Information
- From: Dominic Feira <email@hidden>
- Date: Fri, 30 Jul 2004 14:24:19 -0400
Hi Jeff.
I am using:
AudioDeviceID* ids;
qThrowIfError(AudioHardwareGetProperty(kAudioHardwarePropertyDevices,
&size,
ids), "AudiodHardwareGetProperty");
CFStringRef manufacturer;
Then I am looping through all of the ids and using:
AudioDeviceGetProperty(ids[i],
0,
FALSE,
kAudioDevicePropertyDeviceManufacturerCFString,
&size,
&manufacturer);
I get kAudioHardwareBadDeviceError for all of these properties:
kAudioDevicePropertyDeviceManufacturerCFString
kAudioDevicePropertyDeviceNameCFString
kAudioDevicePropertyDeviceUID
As I mentioned, it works perfectly for every device except the
logitech. I have 2 other USB devices hooked up in addition to built-in
audio and all of those are okay.
On Jul 30, 2004, at 1:00 AM, email@hidden
wrote:
>
>
Message: 6
>
From: Jeff Moore <email@hidden>
>
Subject: Re: Getting Device Information
>
Date: Thu, 29 Jul 2004 17:33:31 -0700
>
To: CoreAudio API <email@hidden>
>
>
kAudioHardwareBadDeviceError means that the AudioDeviceID being passed
>
to the API call doesn't correspond to an actual device. How are you
>
acquiring the AudioDeviceID for this device? Also, does this device
>
show up OK in AMS and the Sound Prefs Pane?
>
>
On Jul 29, 2004, at 3:42 PM, Dominic Feira wrote:
>
>
> Hello.
>
>
>
> I am currently getting information about the devices attached to the
>
> computer.
>
> Everything is going fine, except for the exception of a Logitech
>
> AK5370
>
> Desktop Microphone.
>
>
>
> Anytime I try to get information about this device it returns
>
> kAudioHardwareBadDeviceError.
>
> Every other device returns the expected information for manufacturer,
>
> name, and unique id.
>
>
>
> If anybody here has any ideas please let me know.
>
>
>
> Maybe even someone from logitech is monitoring this list.
>
>
>
> Dominic Feira / Ambrosia Software, Inc. / Code Monkey
>
>
--
>
>
Jeff Moore
>
Core Audio
>
Apple
_______________________________________________
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.