Methods (5)
Namespace: CSCore.CoreAudioAPI

Syntax

public class AudioSessionManager : ComObject

Base Type

Summary

The AudioSessionManager class enables a client to access the session controls and volume controls for both cross-process and process-specific audio sessions.

Uses

Methods

AudioSessionManager(IntPtr ptr)

Initializes a new instance of the AudioSessionManager class.

public void AudioSessionManager(IntPtr ptr)

Parameters

ptr

IntPtr

Native pointer to the AudioSessionManager object.

public AudioSessionControl GetAudioSessionControl(Guid audioSessionGuid, Int32 streamFlags)

Parameters

audioSessionGuid

Guid

If 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

Int32

Specifies the status of the flags for the audio stream.

Returns

AudioSessionControl instance.

public Int32 GetAudioSessionControlNative(Guid audioSessionGuid, Int32 streamFlags, AudioSessionControl& sessionControl)

Parameters

audioSessionGuid

Guid

If 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

Int32

Specifies the status of the flags for the audio stream.

sessionControl

AudioSessionControl&

The AudioSessionControl of the specified audioSessionGuid.

Returns

HRESULT

public SimpleAudioVolume GetSimpleAudioVolume(Guid audioSessionGuid, Boolean crossProcessSession)

Parameters

crossProcessSession

Boolean

Specifies 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

Guid

If 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.

public Int32 GetSimpleAudioVolumeNative(Guid audioSessionGuid, NativeBool crossProcessSession, SimpleAudioVolume& audioVolume)

Parameters

crossProcessSession

NativeBool

Specifies 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

Guid

If 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