2.2.3.2 Connect Accept Message
This message is sent by the voice server to inform the voice client of configuration of the game session. This message is sent as an ordered and guaranteed message by using the DirectPlay protocol voice message type.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Header |
SessionType |
||||||||||||||||||||||||||||||
... |
VersionMajor |
VersionMinor |
VersionBuild |
||||||||||||||||||||||||||||
... |
SessionFlags |
||||||||||||||||||||||||||||||
... |
CompressionType (16 bytes) |
||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
Header (1 byte): The common message header (as specified in section 2.2.1). The MessageType field MUST be set to DVMSGID_CONNECTACCEPT (0x56).
SessionType (4 bytes): A 32-bit unsigned integer. This value MUST be one of the following. It indicates which type of voice session is in use and, therefore, which voice session subprotocol to use when communicating for this voice session.
-
Value
Meaning
DVSESSIONTYPE_PEER
0x00000001
The peer-to-peer voice session type. Use the Peer Voice Session Subprotocol (section 1.3.3).
DVSESSIONTYPE_MIXING
0x00000002
The mixing voice session type. Use the Mixing Voice Session Subprotocol (section 1.3.4).
DVSESSIONTYPE_FORWARDING
0x00000003
The forwarding voice session type. Use the Forwarding Voice Session Subprotocol (section 1.3.5).
DVSESSIONTYPE_ECHO
0x00000004
The echo voice session type. Use the Echo Voice Session Subprotocol (section 1.3.6).
VersionMajor (1 byte): An 8-bit, unsigned integer. This value MUST be 0x01.
VersionMinor (1 byte): An 8-bit, unsigned integer. This value MUST be 0x00.
VersionBuild (4 bytes): A 32-bit, unsigned integer. This value MUST be 0x00000003.
SessionFlags (4 bytes): A 32-bit, unsigned integer representing a set of bit flags that indicate the session flags for the voice session. This field SHOULD be composed of the bitwise OR of zero or more of the following.
-
Value
Meaning
DVSESSION_NOHOSTMIGRATION
0x00000001
Host migration (section 1.3.3.1) is not enabled in the current voice session. If the voice server leaves the game session, the game session will end.
DVSESSION_SERVERCONTROLTARGET
0x00000002
The target of a voice client's voice data is controlled by the voice server instead of the voice client itself.
CompressionType (16 bytes): A 16-byte GUID value indicating the compression ID for the codec that MUST be used for encoding voice data in this voice session. For a full description of the codecs and required parameters, see Required Codecs (section 1.3.7).
-
Note When the client receives the Connect Accept Message, it SHOULD check its local capabilities to ensure that it can support the specified codec. If it cannot support the specified codec, then the client will not send any more messages and MUST NOT reply with a Client Capability Confirmation Message.
-
This MUST be one of the following values.
-
Value
Meaning
DPVCTGUID_ADPCM
699B52C1-A885-46a8-A308-97172419ADC7
Microsoft Adaptive Delta Pulse Code Modulation (MS-ADPCM)
DPVCTGUID_GSM
24768C60-5A0D-11d3-9BE4-525400D985E7
Global System for Mobile Communications (GSM)
DPVCTGUID_NONE
8DE12FD4-7CB3-48ce-A7E8-9C47A22E8AC5
Pulse Code Modulation (PCM)
DPVCTGUID_SC03
7D82A29B-2242-4f82-8F39-5D1153DF3E41
Voxware SC03
DPVCTGUID_SC06
53DEF900-7168-4633-B47F-D143916A13C7
Voxware SC06
DPVCTGUID_TRUESPEECH
D7954361-5A0B-11d3-9BE4-525400D985E7
Truespeech
DPVCTGUID_VR12
FE44A9FE-8ED4-48bf-9D66-1B1ADFF9FF6D
Voxware VR12