The definition of the AudioFrame struct.
◆ AudioFrame()
◆ type
◆ samplesPerChannel
The number of samples per channel in this frame.
◆ bytesPerSample
The number of bytes per sample: #BYTES_PER_SAMPLE
◆ channels
The number of audio channels (data is interleaved, if stereo).
◆ samplesPerSec
The sample rate of the audio frame.
◆ buffer
The pointer to the audio data buffer.
◆ renderTimeMs
The timestamp to render the audio data. Use this member for audio-video synchronization when rendering the audio.
- Note
- This parameter is the timestamp for audio rendering. Set it as 0.
◆ avsync_type