game_chat_audio_format
描述解释 Game Chat 2 音频数据所需的格式信息。语法
成员
sample_rate类型:uint32_t 每个通道应播放或录制的采样频率。 channel_mask
类型:uint32_t 用于覆盖多通道音频流中通道到扬声器位置分配的通道掩码。有关此值的位到扬声器映射,请参阅 Microsoft Docs 上 WAVEFORMATEXTENSIBLE 结构中 dwChannelMask 成员的说明。若要使用默认映射,请将此值设置为 0。 channel_count
类型:uint16_t 音频数据的通道数。 bits_per_sample
类型:uint16_t 每个采样的位数。如果此值不能被字节整除,则假定包含采样的类型已被填充位使其可被字节整除。 sample_type
类型:game_chat_sample_type 指定 Game Chat 2 是使用由整数表示的脉冲编码调制 (PCM) 数据 (game_chat_sample_type::integer) 还是由浮点数表示的数据 (game_chat_sample_type::ieee_float)。 is_interleaved
类型:bool 一个标志,表示多通道音频流对于多通道格式是否为交错格式。 从 Game Chat 2 检索的音频始终标记为交错。此参数仅在 game_chat_audio_format::channel_count 大于 1 时才有意义。
备注
此结构用于描述 Game Chat 2 中编码前音频流、解码后音频源流和解码后音频接收流的音频数据的格式。以下函数用于获取或设置其对应流对象所使用的game_chat_audio_format:
- 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
需求
头文件: GameChat2.h 支持的平台: Windows、XBOX One 家族主机以及 XBOX Series 主机另请参阅
Game Chat 2 简介chat_manager
pre_encode_audio_stream
post_decode_audio_sink_stream
post_decode_audio_source_stream
GameChat2 members
