Fix: rename ms_per_buffer to buffer_duration
Buffer duration is in seconds, not milliseconds.
No-Try: True
Bug: webrtc:11430
Change-Id: Ib03c2002f2dc6c43e01e50d745d709c2644c8b1e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170500
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30798}
diff --git a/AUTHORS b/AUTHORS
index 64a3e5c..d306c51 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -34,6 +34,7 @@
Jiawei Ou <jiawei.ou@gmail.com>
Jie Mao <maojie0924@gmail.com>
Jose Antonio Olivera Ortega <josea.olivera@gmail.com>
+Kiran Thind <kiran.thind@gmail.com>
Luke Weber <luke.weber@gmail.com>
Maksim Khobat <maksimkhobat@gmail.com>
Mallikarjuna Rao V <vm.arjun@samsung.com>
diff --git a/modules/audio_device/include/audio_device_defines.h b/modules/audio_device/include/audio_device_defines.h
index 2a70643..d5d4d73 100644
--- a/modules/audio_device/include/audio_device_defines.h
+++ b/modules/audio_device/include/audio_device_defines.h
@@ -95,9 +95,9 @@
frames_per_10ms_buffer_ = static_cast<size_t>(sample_rate / 100);
}
size_t bits_per_sample() const { return kBitsPerSample; }
- void reset(int sample_rate, size_t channels, double ms_per_buffer) {
+ void reset(int sample_rate, size_t channels, double buffer_duration) {
reset(sample_rate, channels,
- static_cast<size_t>(sample_rate * ms_per_buffer + 0.5));
+ static_cast<size_t>(sample_rate * buffer_duration + 0.5));
}
void reset(int sample_rate, size_t channels) {
reset(sample_rate, channels, static_cast<size_t>(0));