Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IChannelAudioVolume::GetChannelCount method

The GetChannelCount method retrieves the number of channels in the stream format for the audio session.

Syntax


HRESULT GetChannelCount(
  [out]  UINT32 *pdwCount
);

Parameters

pdwCount [out]

Pointer to a UINT32 variable into which the method writes the channel count.

Return value

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return codeDescription
E_POINTER

Parameter pdwCount is NULL.

AUDCLNT_E_DEVICE_INVALIDATED

The audio endpoint device has been unplugged, or the audio hardware or associated hardware resources have been reconfigured, disabled, removed, or otherwise made unavailable for use.

AUDCLNT_E_SERVICE_NOT_RUNNING

The Windows audio service is not running.

 

Remarks

Call this method to get the number of channels in the audio session before calling any of the other methods in the IChannelAudioVolume interface.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Audioclient.h

See also

IChannelAudioVolume Interface

 

 

Community Additions

Show:
© 2014 Microsoft