IAudioSessionEnumerator::GetCount method (audiopolicy.h)

The GetCount method gets the total number of audio sessions that are open on the audio device.

Syntax

HRESULT GetCount(
  [out] int *SessionCount
);

Parameters

[out] SessionCount

Receives the total number of audio sessions.

Return value

If the method succeeds, it returns S_OK.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header audiopolicy.h

See also

IAudioSessionEnumerator