Developer Documentation

OdinClient.JoinRoom

public Room JoinRoom(string token, uint samplerate, bool stereo, bool handleRoom = true)
public Room JoinRoom(string token, string roomName, byte[] userData, float positionX, float positionY, float positionZ, uint samplerate, bool stereo, bool handleRoom = true)

Create and join a Room

Parameters

NameTypeDescription
tokenStringtoken
samplerateUInt32
stereoBoolean
handleRoomBooleantrue will add the room to of the client
roomNameStringroom alias
userDataByte[]initial userdata
positionXSingleserver culling position X
positionYSingleserver culling position Y
positionZSingle

Returns

TypeDescription
Roomroom or null

Variants

JoinRoom(token, samplerate, stereo, handleRoom)

public Room JoinRoom(string token, uint samplerate, bool stereo, bool handleRoom = true)

Create and join a Room

Parameters

NameTypeDescription
tokenStringtoken
samplerateUInt32
stereoBoolean
handleRoomBooleantrue will add the room to of the client

Returns

TypeDescription
Roomroom or null

JoinRoom(token, roomName, userData, positionX, positionY, positionZ, samplerate, stereo, handleRoom)

public Room JoinRoom(string token, string roomName, byte[] userData, float positionX, float positionY, float positionZ, uint samplerate, bool stereo, bool handleRoom = true)

Create and join a Room

Parameters

NameTypeDescription
tokenStringtoken
roomNameStringroom alias
userDataByte[]initial userdata
positionXSingleserver culling position X
positionYSingleserver culling position Y
positionZSingle
samplerateUInt32
stereoBoolean
handleRoomBooleantrue will add the room to of the client

Returns

TypeDescription
Roomroom or null