diff --git a/api/audio/audio_frame.h b/api/audio/audio_frame.h index cc078771fa..dd6ac021a7 100644 --- a/api/audio/audio_frame.h +++ b/api/audio/audio_frame.h @@ -18,7 +18,7 @@ namespace webrtc { -/* This class holds up to 60 ms of super-wideband (32 kHz) stereo audio. It +/* This class holds up to 120 ms of super-wideband (32 kHz) stereo audio. It * allows for adding and subtracting frames while keeping track of the resulting * states. * @@ -38,8 +38,9 @@ class AudioFrame { // variables which should allow us to switch to constexpr and keep this a // header-only class. enum : size_t { - // Stereo, 32 kHz, 60 ms (2 * 32 * 60) - kMaxDataSizeSamples = 3840, + // Stereo, 32 kHz, 120 ms (2 * 32 * 120) + // Stereo, 192 kHz, 20 ms (2 * 192 * 20) + kMaxDataSizeSamples = 7680, kMaxDataSizeBytes = kMaxDataSizeSamples * sizeof(int16_t), };