AudioPcmFrame

The parameters of the audio frame in PCM format.

struct AudioPcmFrame {
                OPTIONAL_ENUM_SIZE_T {
                  kMaxDataSizeSamples = 3840,
                  kMaxDataSizeBytes = kMaxDataSizeSamples * sizeof(int16_t),
                };
              
                uint32_t capture_timestamp;
                size_t samples_per_channel_;
                int sample_rate_hz_;
                size_t num_channels_;
                rtc::BYTES_PER_SAMPLE bytes_per_sample;
                int16_t data_[kMaxDataSizeSamples];
              };
            

Attributes

OPTIONAL_ENUM_SIZE_T
The buffer size of the PCM audio frame. The initial value is 3840.
capture_timestamp
The timestamp (ms) of the audio frame.
samples_per_channel_
The number of samples per channel in the audio frame.
sample_rate_hz_
Audio sample rate (Hz).
num_channels_
The number of audio channels.
bytes_per_sample
The number of bytes per sample.
data_
The audio frame.