public class AudioSessionManager : ComObject
The AudioSessionManager class enables a client to access the session controls and volume controls for both cross-process and process-specific audio sessions.
AudioSessionManager(IntPtr ptr)
Initializes a new instance of the AudioSessionManager class.
public void AudioSessionManager(IntPtr ptr)
Parameters
ptr
IntPtrNative pointer to the AudioSessionManager object.
GetAudioSessionControl(Guid audioSessionGuid, Int32 streamFlags)
Retrieves an audio session control.
public AudioSessionControl GetAudioSessionControl(Guid audioSessionGuid, Int32 streamFlags)
Parameters
audioSessionGuid
GuidIf the GUID does not identify a session that has been previously opened, the call opens a new but empty session. If the value is Guid.Empty, the method assigns the stream to the default session.
streamFlags
Int32Specifies the status of the flags for the audio stream.
Returns
AudioSessionControl instance.
GetAudioSessionControlNative(Guid audioSessionGuid, Int32 streamFlags, AudioSessionControl& sessionControl)
Retrieves an audio session control.
public Int32 GetAudioSessionControlNative(Guid audioSessionGuid, Int32 streamFlags, AudioSessionControl& sessionControl)
Parameters
audioSessionGuid
GuidIf the GUID does not identify a session that has been previously opened, the call opens a new but empty session. If the value is Guid.Empty, the method assigns the stream to the default session.
streamFlags
Int32Specifies the status of the flags for the audio stream.
sessionControl
AudioSessionControl&The AudioSessionControl of the specified audioSessionGuid.
Returns
HRESULT
GetSimpleAudioVolume(Guid audioSessionGuid, Boolean crossProcessSession)
Retrieves a simple audio volume control.
public SimpleAudioVolume GetSimpleAudioVolume(Guid audioSessionGuid, Boolean crossProcessSession)
Parameters
crossProcessSession
BooleanSpecifies whether the request is for a cross-process session. Set to TRUE if the session is cross-process. Set to FALSE if the session is not cross-process.
audioSessionGuid
GuidIf the GUID does not identify a session that has been previously opened, the call opens a new but empty session. If the value is Guid.Empty, the method assigns the stream to the default session.
Returns
SimpleAudioVolume instance.
GetSimpleAudioVolumeNative(Guid audioSessionGuid, NativeBool crossProcessSession, SimpleAudioVolume& audioVolume)
Retrieves a simple audio volume control.
public Int32 GetSimpleAudioVolumeNative(Guid audioSessionGuid, NativeBool crossProcessSession, SimpleAudioVolume& audioVolume)
Parameters
crossProcessSession
NativeBoolSpecifies whether the request is for a cross-process session. Set to TRUE if the session is cross-process. Set to FALSE if the session is not cross-process.
audioSessionGuid
GuidIf the GUID does not identify a session that has been previously opened, the call opens a new but empty session. If the value is Guid.Empty, the method assigns the stream to the default session.
audioVolume
SimpleAudioVolume&SimpleAudioVolume of the audio volume control object.
Returns
HRESULT