Remarks
Redirects the given audio stream's clone, previously added through the StreamCloneAdd method, to a specific speaker.
Syntax
[Visual Basic]
control.StreamCloneOutputSpeakerSet (
nPlayer as Integer,
nSpeaker as enumSpeakers,
nUniqueId as Long
) as enumErrorCodes
|
|
[C++]
short control.StreamCloneOutputSpeakerSet (
short nPlayer,
short nSpeaker,
long nUniqueId
);
|
|
Parameter
|
Description
|
|
|
nPlayer
|
Number representing the zero-based index of the involved player
|
nSpeaker
|
The new speaker assigned to the given player.
Supported values are the following:
Mnemonic value
|
Numeric value
|
Meaning
|
SPEAKER_FRONT
|
0
|
Front speakers (Stereo)
|
SPEAKER_REAR
|
1
|
Rear speakers (Stereo)
|
SPEAKER_CENTER_LFE
|
2
|
Center speakers (Stereo)
|
SPEAKER_REAR_CENTER
|
3
|
Rear center speakers (Stereo)
|
SPEAKER_FRONT_LEFT
|
4
|
Front-left speaker (Mono)
|
SPEAKER_FRONT_RIGHT
|
5
|
Front-right speaker (Mono)
|
SPEAKER_REAR_LEFT
|
6
|
Rear-left speaker (Mono)
|
SPEAKER_REAR_RIGHT
|
7
|
Rear-right speaker (Mono)
|
SPEAKER_CENTER
|
8
|
Center speaker (Mono)
|
SPEAKER_LFE
|
9
|
LFE or Subwoofer speaker (Mono)
|
SPEAKER_REAR_CENTER_LEFT
|
10
|
Rear Center Left speaker (Mono)
|
SPEAKER_REAR_CENTER_RIGHT
|
11
|
Rear Center Right speaker (Mono)
|
|
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, check the LastError property value in order to get the error code
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful
|
|