Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
Describes the format information needed to interpret Game Chat 2 audio data.
Syntax
typedef struct game_chat_audio_format {
uint32_t sample_rate;
uint32_t channel_mask;
uint16_t channel_count;
uint16_t bits_per_sample;
game_chat_sample_type sample_type;
bool is_interleaved;
} game_chat_audio_format
Members
sample_rate
Type: uint32_t
The sample frequency at which each channel should be played or recorded.
channel_mask
Type: uint32_t
The channel mask with which to override the assignment of channels in a multichannel audio stream to speaker positions. For the bit-to-speaker mapping of this value, see the description of the dwChannelMask member for the WAVEFORMATEXTENSIBLE structure on Microsoft Docs. To use the default mapping, set this to 0.
channel_count
Type: uint16_t
The number of channels of audio data.
bits_per_sample
Type: uint16_t
The number of bits per sample. If this value is not byte-divisible, it is assumed that the containing sample type is padded with bits to make it byte-divisible.
sample_type
Type: game_chat_sample_type
Specifies whether Game Chat 2 is using Pulse Code Manipulation (PCM) data represented by integers (game_chat_sample_type::integer) or floating-point numbers (game_chat_sample_type::ieee_float).
is_interleaved
Type: bool
A flag representing whether the multichannel audio stream is interleaved for multi-channel formats.
Audio retrieved from Game Chat 2 is always marked as interleaved. This parameter has meaning only if game_chat_audio_format::channel_count is greater than 1.
Remarks
This structure is used to describe the format of audio data for pre-encode audio streams, post-decode audio source streams, and post-decode audio sink streams in Game Chat 2. The following functions get or set the game_chat_audio_format used by their corresponding stream objects:
- pre_encode_audio_stream::get_pre_processed_format
- pre_encode_audio_stream::set_processed_format
- post_decode_audio_source_stream::get_pre_processed_format
- post_decode_audio_sink_stream::set_processed_format
For more information about audio formats, see Real-time audio manipulation.
Requirements
Header: GameChat2.h
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles
See also
Intro to Game Chat 2
chat_manager
pre_encode_audio_stream
post_decode_audio_sink_stream
post_decode_audio_source_stream
GameChat2 members