Skip to content

Latest commit

 

History

History
116 lines (96 loc) · 3.29 KB

nf-mfidl-imfsimpleaudiovolume-setmastervolume.md

File metadata and controls

116 lines (96 loc) · 3.29 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:mfidl.IMFSimpleAudioVolume.SetMasterVolume
IMFSimpleAudioVolume::SetMasterVolume (mfidl.h)
Sets the master volume level.
42b51817-3c2a-463a-a533-19c327c57354
IMFSimpleAudioVolume interface [Media Foundation]
SetMasterVolume method
IMFSimpleAudioVolume.SetMasterVolume
IMFSimpleAudioVolume::SetMasterVolume
SetMasterVolume
SetMasterVolume method [Media Foundation]
SetMasterVolume method [Media Foundation]
IMFSimpleAudioVolume interface
mf.imfsimpleaudiovolume_setmastervolume
mfidl/IMFSimpleAudioVolume::SetMasterVolume
mf\imfsimpleaudiovolume_setmastervolume.htm
mf
42b51817-3c2a-463a-a533-19c327c57354
12/05/2018
42b51817-3c2a-463a-a533-19c327c57354, IMFSimpleAudioVolume interface [Media Foundation],SetMasterVolume method, IMFSimpleAudioVolume.SetMasterVolume, IMFSimpleAudioVolume::SetMasterVolume, SetMasterVolume, SetMasterVolume method [Media Foundation], SetMasterVolume method [Media Foundation],IMFSimpleAudioVolume interface, mf.imfsimpleaudiovolume_setmastervolume, mfidl/IMFSimpleAudioVolume::SetMasterVolume
mfidl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Mfuuid.lib
Windows
19H1
IMFSimpleAudioVolume::SetMasterVolume
mfidl/IMFSimpleAudioVolume::SetMasterVolume
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFSimpleAudioVolume.SetMasterVolume

IMFSimpleAudioVolume::SetMasterVolume

-description

Sets the master volume level.

-parameters

-param fLevel [in]

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

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
MF_E_NOT_INITIALIZED
The audio renderer is not initialized.
MF_E_STREAMSINK_REMOVED
The audio renderer was removed from the pipeline.

-remarks

Events outside of the application can change the master volume level. For example, the user can change the volume from the system volume-control program (SndVol). If an external event changes the master volume, the audio renderer sends an MEAudioSessionVolumeChanged event, which the Media Session forwards to the application.

-see-also

IMFSimpleAudioVolume

Streaming Audio Renderer