EncodedAudioFrameInfo
编码后音频的信息。
C#
public class EncodedAudioFrameInfo
{
public EncodedAudioFrameInfo()
{
codec = AUDIO_CODEC_TYPE.AUDIO_CODEC_AACLC;
sampleRateHz = 0;
samplesPerChannel = 0;
numberOfChannels = 0;
captureTimeMs = 0;
}
public EncodedAudioFrameInfo(ref EncodedAudioFrameInfo rhs)
{
codec = rhs.codec;
sampleRateHz = rhs.sampleRateHz;
samplesPerChannel = rhs.samplesPerChannel;
numberOfChannels = rhs.numberOfChannels;
advancedSettings = rhs.advancedSettings;
captureTimeMs = rhs.captureTimeMs;
}
public AUDIO_CODEC_TYPE codec { set; get; }
public int sampleRateHz { set; get; }
public int samplesPerChannel { set; get; }
public int numberOfChannels { set; get; }
public EncodedAudioFrameAdvancedSettings advancedSettings { set; get; }
public int64_t captureTimeMs;
};
codec
音频编码规格: AUDIO_CODEC_TYPE。
sampleRateHz
音频采样率 (Hz)。
samplesPerChannel
每个声道的音频采样数。
numberOfChannels
声道数。
advancedSettings
该功能暂不支持。
captureTimeMs
采集外部编码视频帧的 Unix 时间戳 (ms)。