Bump to WebRTC M120 release
Some API deprecation -- ExperimentalAgc and ExperimentalNs are gone. We're continuing to carry iSAC even though it's gone upstream, but maybe we'll want to drop that soon.
This commit is contained in:
@ -14,9 +14,7 @@
|
||||
#include <numeric>
|
||||
|
||||
#include "absl/types/optional.h"
|
||||
#include "modules/audio_processing/audio_buffer.h"
|
||||
#include "modules/audio_processing/logging/apm_data_dumper.h"
|
||||
#include "rtc_base/atomic_ops.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/logging.h"
|
||||
#include "system_wrappers/include/metrics.h"
|
||||
@ -42,11 +40,10 @@ constexpr size_t kAggregationBufferSize = 10 * 100;
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
int ResidualEchoDetector::instance_count_ = 0;
|
||||
std::atomic<int> ResidualEchoDetector::instance_count_(0);
|
||||
|
||||
ResidualEchoDetector::ResidualEchoDetector()
|
||||
: data_dumper_(
|
||||
new ApmDataDumper(rtc::AtomicOps::Increment(&instance_count_))),
|
||||
: data_dumper_(new ApmDataDumper(instance_count_.fetch_add(1) + 1)),
|
||||
render_buffer_(kRenderBufferSize),
|
||||
render_power_(kLookbackFrames),
|
||||
render_power_mean_(kLookbackFrames),
|
||||
@ -199,13 +196,6 @@ void ResidualEchoDetector::Initialize(int /*capture_sample_rate_hz*/,
|
||||
reliability_ = 0.f;
|
||||
}
|
||||
|
||||
void EchoDetector::PackRenderAudioBuffer(AudioBuffer* audio,
|
||||
std::vector<float>* packed_buffer) {
|
||||
packed_buffer->clear();
|
||||
packed_buffer->insert(packed_buffer->end(), audio->channels()[0],
|
||||
audio->channels()[0] + audio->num_frames());
|
||||
}
|
||||
|
||||
EchoDetector::Metrics ResidualEchoDetector::GetMetrics() const {
|
||||
EchoDetector::Metrics metrics;
|
||||
metrics.echo_likelihood = echo_likelihood_;
|
||||
|
Reference in New Issue
Block a user