Skip to content

Latest commit

 

History

History
112 lines (89 loc) · 3.93 KB

nf-devicetopology-iperchanneldblevel-getlevelrange.md

File metadata and controls

112 lines (89 loc) · 3.93 KB
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.
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
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
IPerChannelDbLevel::GetLevelRange
devicetopology/IPerChannelDbLevel::GetLevelRange
c++
APIRef
kbSyntax
COM
Devicetopology.h
IPerChannelDbLevel.GetLevelRange

IPerChannelDbLevel::GetLevelRange

-description

The GetLevelRange method gets the range, in decibels, of the volume level of the specified channel.

-parameters

-param nChannel [in]

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.

-param pfMinLevelDB [out]

Pointer to a float variable into which the method writes the minimum volume level in decibels.

-param pfMaxLevelDB [out]

Pointer to a float variable into which the method writes the maximum volume level in decibels.

-param pfStepping [out]

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.

-returns

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
E_INVALIDARG
Parameter nChannel is out of range.
E_POINTER
Pointer pfminLevelDB, pfmaxLevelDB, or pfmaxLevelDB is NULL.

-see-also

IPerChannelDbLevel Interface

IPerChannelDbLevel::GetChannelCount