Copyright © 2005-2020 MultiMedia Soft

StreamCloneOutputDeviceSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Redirects the given audio stream's clone, previously added through the StreamCloneAdd method, to the given output device.

 

If the new output device supports a multi-speaker configuration, you can redirect the clone to a specific speaker through the StreamCloneOutputSpeakerSet method.

 

 

Syntax

 

[Visual Basic]

Public Function StreamCloneOutputDeviceSet (

nPlayerIndex as Int16,

nOutputIndex as Int16,

nUniqueId as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes StreamCloneOutputDeviceSet (

Int16 nPlayerIndex,

Int16 nOutputIndex,

Int32 nUniqueId

);


 

[C++]

public: enumErrorCodes StreamCloneOutputDeviceSet (

Int16 nPlayerIndex,

Int16 nOutputIndex,

Int32 nUniqueId

);


 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

nOutputIndex

Number representing the zero-based index of the output device. The number and descriptions of available output devices can be obtained with a prior call to the GetOutputDevicesCount and GetOutputDeviceDesc

nUniqueId

Numeric value representing the unique identifier of the audio stream's clone returned by the StreamCloneAdd method

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.NOERROR (0)

The method call was successful.