Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceClient8.SetTransmitTargets

Specifies which players or groups receive audio transmissions from the local client.

SetTransmitTargets(playerIDs() As Long, lFlags As Long)

Parts

playerIDs()
Array of Long values specifying the DVIDs of the players or groups that are to receive the voice transmission.
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_INVALIDFLAGS
DVERR_INVALIDPOINTER
DVERR_NOTINITIALIZED
DVERR_INVALIDTARGET

Remarks

If the session was created with the DVSESSION_SERVERCONTROLTARGET flag, only the server can set the target for this local client. A call to this method returns DVERR_NOTALLOWED.