ISimpleAudioVolumeSetMasterVolume Method

Sets the master volume level for the audio session.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult SetMasterVolume(
	float levelNormalization,
	Guid eventContext
)

Parameters

levelNormalization  Single
The new volume level expressed as a normalized value between 0.0 and 1.0.
eventContext  Guid
A user context value that is passed to the notification callback.

Return Value

HResult
If the method succeeds, it returns S_OK. If it fails, it returns an HResult value.

See Also