Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting Input property for USB headsets



It is definitely the case that there are devices out there (including USB headsets) that have no volume controls.

Checking for kAudioHardwareUnknownPropertyError getting returned from AudioDeviceGetPropertyInfo() or calling AudioObjectHasProperty() are fine ways to find out if the device supports a volume control on a given channel.


On Mar 28, 2007, at 4:05 PM, Neal Sidhwaney wrote:

With two different USB microphones we’ve tried, we’re getting ‘who?’ when setting kAudioDevicePropertyVolumeScalar with the following lines of code:

theStatus = AudioDeviceGetPropertyInfo (
_inputDeviceID, i, true,
kAudioDevicePropertyVolumeScalar,
NULL, &isWritable );


if(theStatus != kAudioHardwareNoError)
{
LOG(TR_ERROR, " SetMicLevel() AudioDeviceGetPropertyInfo error: %4.4s", (char*)&theStatus);
}


My question is, do USB headsets generally not support setting an input level through Core Audio? Is it a hardware deficiency or a driver problem? Is checking for ‘who?’ in this case the best way to determine if this functionality is present?


--

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: http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >setting Input property for USB headsets (From: "Neal Sidhwaney" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.