GetVolume

IMFPMediaPlayer::GetVolume method

Important  Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.
 

Gets the current audio volume.

Syntax


HRESULT GetVolume(
  [out] float *pflVolume
);

Parameters

pflVolume [out]

Receives the audio volume. Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation).

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mfplay.h

See also

IMFPMediaPlayer
Using MFPlay for Audio/Video Playback

 

 

Community Additions

ADD
Show:
© 2016 Microsoft