IAudioEndpointVolumeEx::GetVolumeRangeChannel method (endpointvolume.h)
The GetVolumeRangeChannel method gets the volume range for a specified channel.
Syntax
HRESULT GetVolumeRangeChannel(
[in] UINT iChannel,
[out] float *pflVolumeMindB,
[out] float *pflVolumeMaxdB,
[out] float *pflVolumeIncrementdB
);
Parameters
[in] iChannel
The channel number for which to get the volume range. If the audio stream has n channels, the channels are numbered from 0 to n– 1. To obtain the number of channels in the stream, call the IAudioEndpointVolume::GetChannelCount method.
[out] pflVolumeMindB
Receives the minimum volume level for the channel, in decibels.
[out] pflVolumeMaxdB
Receives the maximum volume level for the channel, in decibels.
[out] pflVolumeIncrementdB
Receives the volume increment for the channel, in decibels.
Return value
If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.
Return code | Description |
---|---|
|
Parameter pfLevelMinDB, pfLevelMaxDB, or pfVolumeIncrementDB is NULL. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | endpointvolume.h |