2.2.1 RDPSND PDU Header (SNDPROLOG)
The RDPSND PDU header is present in many audio PDUs. It is used to identify the PDU type, specify the length of the PDU, and convey message flags.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
msgType |
bPad |
BodySize |
msgType (1 byte): An 8-bit unsigned integer that specifies the type of audio PDU that follows the BodySize field.
-
Value
Meaning
SNDC_CLOSE
0x01
SNDC_WAVE
0x02
SNDC_SETVOLUME
0x03
SNDC_SETPITCH
0x04
SNDC_WAVECONFIRM
0x05
SNDC_TRAINING
0x06
SNDC_FORMATS
0x07
Server Audio Formats and Version PDU or Client Audio Formats and Version PDU
SNDC_CRYPTKEY
0x08
SNDC_WAVEENCRYPT
0x09
SNDC_UDPWAVE
0x0A
SNDC_UDPWAVELAST
0x0B
SNDC_QUALITYMODE
0x0C
SNDC_WAVE2
0x0D
bPad (1 byte): An 8-bit unsigned integer. Unused. The value in this field is arbitrary and MUST be ignored on receipt.
BodySize (2 bytes): A 16-bit unsigned integer. If msgType is not set to 0x02 (SNDC_WAVE), then this field specifies the size, in bytes, of the data that follows the RDPSND PDU header. If msgType is set to 0x02 (SNDC_WAVE), then the representation of BodySize is explained in the Header field in section 2.2.3.3.