Re: kAudioDevicePropertyVolumeScalar - newbie
Re: kAudioDevicePropertyVolumeScalar - newbie
- Subject: Re: kAudioDevicePropertyVolumeScalar - newbie
- From: Jeff Moore <email@hidden>
- Date: Mon, 1 Dec 2003 16:39:32 -0800
Not every device supports a master volume control; nor does every
device support an individual channel volume control. You need to be
prepared to deal with devices that don't provide the controls you are
looking for. Take a look at the
/Developer/Examples/CoreAudio/HAL/HALLab for an example that
enables/disables sliders based on the presence/absence of the control.
On Nov 28, 2003, at 6:28 AM, Berend Schmid wrote:
When I query the kAudioDevicePropertyVolumeScalar for channel 1 or 2 or
whatever I get a useable result but
when querying the kAudioDevicePropertyVolumeScalar for the master
channel 0 i always get a 0 result.
Any ideas what could be wrong?
This works:
AudioDeviceGetProperty(deviceID, 2, FALSE,
kAudioDevicePropertyVolumeScalar, &dataSize, &volume);
This doesn't work:
AudioDeviceGetProperty(deviceID, 0, FALSE,
kAudioDevicePropertyVolumeScalar, &dataSize, &volume);
thanks
Berend
_______________________________________________
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.
--
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.