Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents  
 
SetPlayerOutputDevice method 
 
Remarks 
 
Changes the output device (sound card) for the given player. This method can be called at any time, also during playback. 
 
By default, the output device is set at the very beginning through a call to the InitDJSystem method. 
 
Use the value returned by the GetOutputDevicesCount method in order to know how many output devices are currently installed on the system and the GetOutputDeviceDesc method in order to retrieve the friendly name of every output device. 
 
If the output device is changed successfully, a OutputDeviceChanged event is fired. 
 
 
Syntax 
 
[Visual Basic] 
control.SetPlayerOutputDevice
nPlayer as Integer
nIndex as Integer 
 
[C++] 
short control.SetPlayerOutputDevice
short nPlayer, 
short nIndex 
);
 
 
Parameter
Description
 
 
nPlayer
Number representing the zero-based index of the involved player
nIndex
Number representing the index of the output device that will be used by the given player.
 
 
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.
 
 
 
 
 
 
 
 
Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents