Re: Problem with Set/Get volume of input device with single channel
Re: Problem with Set/Get volume of input device with single channel
- Subject: Re: Problem with Set/Get volume of input device with single channel
- From: Jeff Moore <email@hidden>
- Date: Wed, 09 Dec 2009 23:31:01 -0800
So, nothing downloaded for me when I tried to look at your code. Safari just sat there and did nothing when I clicked on the download link.
At any rate, if you have an input device with only one channel, kAudioDevicePropertyPreferredChannelsForStereo doesn't really apply. In fact, the property won't exist for such a device. So getting an error when you try to get it's value is not surprising.
Getting/setting the volume for an input channel is no different than it is for an output channel. The only difference is that you will pass kAudioDevicePropertyScopeInput for the scope. Of course, if the channel lacks a volume control, you will get an error.
On Dec 9, 2009, at 10:45 PM, Symadept wrote:
> I am trying to Set/Get Volume level of Input device which has only single channel but no master channel, then it fails to retrieve the kAudioDevicePropertyPreferredChannelsForStereo and intermittently kAudioDevicePropertyVolumeScalar for each channel. But this works well for Output device.
--
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