Copyright © 2006-2019 MultiMedia Soft

OutputDeviceSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Changes the output device (sound card) used for playback. This method can be called at any time, also during playback. The current selected device can be obtained through the OutputDeviceGet method.

Use the value returned by the OutputDeviceGetCount method in order to know how many output devices are currently installed on the system and the OutputDeviceGetDesc method in order to retrieve the friendly name of every output device.

 

 

Syntax

 

[Visual Basic]

Public Function OutputDeviceSet (

nOutputIndex as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes OutputDeviceSet (

Int16 nOutputIndex

);


 

[C++]

public: enumErrorCodes OutputDeviceSet (

Int16 nOutputIndex

);


 

 

Parameter

Description

 

 

nOutputIndex

Number representing the index of the output device that will be used by the given player. The value of this parameter can be in the range between 0 and the value returned by the OutputDeviceGetCount method.

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.