UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:devicetopology.IPerChannelDbLevel.GetLevelRange |
IPerChannelDbLevel::GetLevelRange (devicetopology.h) |
The GetLevelRange method gets the range, in decibels, of the volume level of the specified channel. |
|
coreaudio\iperchanneldblevel_getlevelrange.htm |
CoreAudio |
492eddb0-f8f2-4639-b5fe-1d02bf8c983a |
12/05/2018 |
GetLevelRange, GetLevelRange method [Core Audio], GetLevelRange method [Core Audio],IPerChannelDbLevel interface, IPerChannelDbLevel interface [Core Audio],GetLevelRange method, IPerChannelDbLevel.GetLevelRange, IPerChannelDbLevel::GetLevelRange, IPerChannelDbLevelGetLevelRange, coreaudio.iperchanneldblevel_getlevelrange, devicetopology/IPerChannelDbLevel::GetLevelRange |
devicetopology.h |
Windows |
Windows Vista [desktop apps only] |
Windows Server 2008 [desktop apps only] |
Windows |
19H1 |
|
|
|
|
|
|
The GetLevelRange method gets the range, in decibels, of the volume level of the specified channel.
The number of the selected channel. If the audio stream has n channels, the channels are numbered from 0 to n– 1. To get the number of channels in the stream, call the IPerChannelDbLevel::GetChannelCount method.
Pointer to a float variable into which the method writes the minimum volume level in decibels.
Pointer to a float variable into which the method writes the maximum volume level in decibels.
Pointer to a float variable into which the method writes the stepping value between consecutive volume levels in the range *pfMinLevelDB to *pfMaxLevelDB. If the difference between the maximum and minimum volume levels is d decibels, and the range is divided into n steps (uniformly sized intervals), then the volume can have n + 1 discrete levels and the size of the step between consecutive levels is d / n decibels.
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 nChannel is out of range. |
|
Pointer pfminLevelDB, pfmaxLevelDB, or pfmaxLevelDB is NULL. |