Copyright © 2005-2019 MultiMedia Soft

GetOutputSpeakersConfig method

Previous pageReturn to chapter overviewNext page

Remarks

 

Gets the actual speakers configuration for the given output device.

The actual speakers configuration can be set through the SetOutputSpeakersConfig method.

 

This method doesn't work in Windows Vista and Windows 7 where speakers configuration can be only set through the Windows Control Panel.

 

For further details about speakers assignment, take a look to the How to work with multiple output devices and speakers section.

 

 

Syntax

 

[Visual Basic]

Public GetOutputSpeakersConfig (

nOutputIndex as Int16

) as enumSpeakersConfig


 

[C#]

public enumSpeakersConfig GetOutputSpeakersConfig (

Int16 nOutputIndex

);


 

[C++]

public: enumSpeakersConfig GetOutputSpeakersConfig (

Int16 nOutputIndex

);


 

 

Parameter

Description

 

 

nOutputIndex

Number representing the zero-based index of the involved output device

 

 

Return value

 

Mnemonic value

Numeric value

Meaning

ERR_xxx

Negative

An error occurred (see the LastError property for further error details)

SPEAKERS_STEREO

0

2 stereo speakers (Stereo)

SPEAKERS_QUADRAPHONIC

1

4 stereo speakers (Quadraphonic)

SPEAKERS_5_1

2

6 stereo speakers (5.1)

SPEAKERS_7_1

3

8 stereo speakers (7.1)