Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceServer8.SetTransmitTargets

Controls the transmission of audio from the client to the specified members of the session.

SetTransmitTargets(playerSourceID As Long, _
    playerTargetIDs As Long(), _
    lFlags As Long)

Parts

playerSourceID
DVID of the user whose targets are set.
playerTargetIDs
Array of long values specifying the DVIDs of the players or groups that are to receive the voice transmission. To specify no targets, pass an empty array for this parameter. To specify all players, create a single-item array containing DVID_ALLPLAYERS.
lFlags
Reserved. Must be 0.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DVERR_INVALIDPARAM
DVERR_NOTALLOWED
DVERR_INVALIDFLAGS
DVERR_INVALIDPOINTER
DVERR_NOTINITIALIZED
DVERR_INVALIDTARGET

Remarks

This method can be used only if the DVSESSION_SERVERCONTROLTARGET flag is specified on creation of the DirectPlay Voice session. If the flag is not specified, this method returns DVERR_NOTALLOWED.