ILMMixCapSrc::GetAudioLevel

Summary

Retrieves the master audio output level.

Syntax

#include "ilmmixcapsrc.h"
Platform Syntax
C HRESULT ILMMixCapSrc_GetAudioLevel(pMixCapSrc, pLeft, pRight)
C++ HRESULT GetAudioLevel(pLeft, pRight)

Parameters

ILMMixCapSrc * pMixCapSrc

Pointer to an ILMMixCapSrc interface.

DOUBLE *pLeft

Pointer to a variable that receives the master left channel output level.

DOUBLE *pRight

Pointer to a variable that receives the master right channel output level.

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

Audio level is expressed as a windowed average from 0.0 to 1.0:

Use the following formula to convert the audio level to the decibel (dB) scale:

Decibels = 20 * log10(Level)

To retrieve or specify the master volume, call ILMMixCapSrc::get_Volume or ILMMixCapSrc::put_Volume.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Help Version 23.0.2024.7.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.