IBasicAudio::get_Volume

 
Microsoft DirectShow 9.0

IBasicAudio::get_Volume

The get_Volume method retrieves the volume (amplitude) of the audio signal.

Syntax

  HRESULT get_Volume(
  long *plVolume
);

Parameters

plVolume

[out] Pointer to a variable that receive the volume. Divide by 100 to get equivalent decibel value. For example, –10,000 is –100 dB.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
E_NOTIMPL The filter graph does not contain an audio renderer filter. (Possibly the source does not contain an audio stream.)
E_POINTER Null pointer argument.
S_OK Success.

Requirements

Header: Declared in Control.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also