2.2.2.1.1 Audio Format (AUDIO_FORMAT)

The AUDIO_FORMAT structure is used to describe a supported audio format.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

wFormatTag

nChannels

nSamplesPerSec

nAvgBytesPerSec

nBlockAlign

wBitsPerSample

cbSize

data (variable)

...

wFormatTag (2 bytes): An unsigned 16-bit integer identifying the compression format of the audio format. It MUST be set to a WAVE form Registration Number listed in [RFC2361]. At a minimum, clients and servers MUST support WAVE_FORMAT_PCM (0x0001). All compression formats supported on specific Windows versions along with corresponding wFormatTag field values are specified by the product behavior note in the data field description of this section.

nChannels (2 bytes): An unsigned 16-bit integer that specifies the number of channels in the audio format. The number of channels is part of the audio format and is not determined by the Remote Desktop Protocol: Audio Output Virtual Channel Extension protocol.

nSamplesPerSec (4 bytes): An unsigned 32-bit integer that specifies the number of audio samples per second in the audio format.

nAvgBytesPerSec (4 bytes): An unsigned 32-bit integer that specifies the average number of bytes the audio format uses to encode one second of audio data.

nBlockAlign (2 bytes): An unsigned 16-bit integer that specifies the minimum atomic unit of data needed to process audio of this format. See [MSDN-AUDIOFORMAT] for more information about block alignment semantics.

wBitsPerSample (2 bytes): An unsigned 16-bit integer that specifies the number of bits needed to represent a sample.

cbSize (2 bytes): An unsigned 16-bit integer specifying the size of the data field.

data (variable): Extra data specific to the audio format.<4> See [MSDN-AUDIOFORMAT] for additional details about extra format information. The size of data, in bytes, is cbSize.