Bump to WebRTC M131 release
Ongoing fixes and improvements, transient suppressor is gone. Also, dropping isac because it doesn't seem to be useful, and is just build system deadweight now. Upstream references: Version: 131.0.6778.200 WebRTC: 79aff54b0fa9238ce3518dd9eaf9610cd6f22e82 Chromium: 2a19506ad24af755f2a215a4c61f775393e0db42
This commit is contained in:
@ -28,9 +28,9 @@ void CircularBuffer::Push(float value) {
|
||||
RTC_DCHECK_LE(nr_elements_in_buffer_, buffer_.size());
|
||||
}
|
||||
|
||||
absl::optional<float> CircularBuffer::Pop() {
|
||||
std::optional<float> CircularBuffer::Pop() {
|
||||
if (nr_elements_in_buffer_ == 0) {
|
||||
return absl::nullopt;
|
||||
return std::nullopt;
|
||||
}
|
||||
const size_t index =
|
||||
(buffer_.size() + next_insertion_index_ - nr_elements_in_buffer_) %
|
||||
|
@ -13,10 +13,9 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/types/optional.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
// Ring buffer containing floating point values.
|
||||
@ -26,7 +25,7 @@ struct CircularBuffer {
|
||||
~CircularBuffer();
|
||||
|
||||
void Push(float value);
|
||||
absl::optional<float> Pop();
|
||||
std::optional<float> Pop();
|
||||
size_t Size() const { return nr_elements_in_buffer_; }
|
||||
// This function fills the buffer with zeros, but does not change its size.
|
||||
void Clear();
|
||||
|
Reference in New Issue
Block a user