EncodedAudioFrameInfo
Audio information after encoding.
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;
};
Attributes
- codec
- Audio Codec type: AUDIO_CODEC_TYPE.
- sampleRateHz
- Audio sample rate (Hz).
- samplesPerChannel
- The number of audio samples per channel.
- numberOfChannels
- The number of audio channels.
- advancedSettings
- This function is currently not supported.
- captureTimeMs
- The Unix timestamp (ms) for capturing the external encoded video frames.