diff options
Diffstat (limited to 'third_party/libwebrtc/modules/audio_device/fine_audio_buffer.h')
-rw-r--r-- | third_party/libwebrtc/modules/audio_device/fine_audio_buffer.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/third_party/libwebrtc/modules/audio_device/fine_audio_buffer.h b/third_party/libwebrtc/modules/audio_device/fine_audio_buffer.h index a6c3042bb2..7af41d3b21 100644 --- a/third_party/libwebrtc/modules/audio_device/fine_audio_buffer.h +++ b/third_party/libwebrtc/modules/audio_device/fine_audio_buffer.h @@ -11,6 +11,10 @@ #ifndef MODULES_AUDIO_DEVICE_FINE_AUDIO_BUFFER_H_ #define MODULES_AUDIO_DEVICE_FINE_AUDIO_BUFFER_H_ +#include <cstddef> +#include <cstdint> + +#include "absl/types/optional.h" #include "api/array_view.h" #include "rtc_base/buffer.h" @@ -61,7 +65,12 @@ class FineAudioBuffer { // 5ms of data and sends a total of 10ms to WebRTC and clears the internal // cache. Call #3 restarts the scheme above. void DeliverRecordedData(rtc::ArrayView<const int16_t> audio_buffer, - int record_delay_ms); + int record_delay_ms) { + DeliverRecordedData(audio_buffer, record_delay_ms, absl::nullopt); + } + void DeliverRecordedData(rtc::ArrayView<const int16_t> audio_buffer, + int record_delay_ms, + absl::optional<int64_t> capture_time_ns); private: // Device buffer that works with 10ms chunks of data both for playout and |