Поделиться через


IBasicAudio::put_Volume

 
Microsoft DirectShow 9.0

IBasicAudio::put_Volume

The put_Volume method sets the volume (amplitude) of the audio signal.

Syntax

  HRESULT put_Volume(
  long lVolume
);

Parameters

lVolume

[in] Specifies the volume, as a number from –10,000 to 0, inclusive.  Full volume is 0, and –10,000 is silence. Multiply the desired decibel level by 100. For example, –10,000 = –100 dB.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
E_FAIL The underlying audio device returned an error.
E_INVALIDARG The value of lVolume is invalid.
E_NOTIMPL The filter graph does not contain an audio renderer filter. (Possibly the source does not contain an audio stream.)
S_OK Success.

Requirements

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

Library: Use Strmiids.lib.

See Also