pre_encode_audio_stream::get_pre_processed_format
获取 pre_encode_audio_stream::get_next_buffer 所返回缓冲区的音频格式。
语法
game_chat_audio_format get_pre_processed_format(
)
参数
无。
返回值
返回 pre_encode_audio_stream::get_next_buffer 所返回缓冲区的音频格式。
备注
此方法将返回一个 game_chat_audio_format 结构 ,该结构表示通过调用该流的 pre_encode_audio_stream::get_next_buffer 方法返回的缓冲区的音频格式。
注意
此方法返回的预处理音频格式始终是单声道 (单声道) 格式,样本类型由 32 位浮点小数、16 位整数和 32 位整数表示。
有关操作前期编码聊天音频数据的详细信息,请参阅 实时音频操作。
要求
头文件:GameChat2.h
支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机