Remove deprecated methods
follow up to https://webrtc-review.googlesource.com/c/src/+/352582 Bug: chromium:335805780 Change-Id: I47f2842da9e86b686e3a3c2f4f28fa03d1cd297d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/356241 Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42589}
This commit is contained in:
parent
3b15e46a4c
commit
7f30dd11eb
@ -48,12 +48,6 @@ class FixedDigitalLevelEstimator {
|
||||
std::array<float, kSubFramesInFrame> ComputeLevel(
|
||||
DeinterleavedView<const float> float_frame);
|
||||
|
||||
[[deprecated(
|
||||
"Use DeinterleavedView variant")]] std::array<float, kSubFramesInFrame>
|
||||
ComputeLevel(const AudioFrameView<const float>& float_frame) {
|
||||
return ComputeLevel(float_frame.view());
|
||||
}
|
||||
|
||||
// Rate may be changed at any time (but not concurrently) from the
|
||||
// value passed to the constructor. The class is not thread safe.
|
||||
void SetSamplesPerChannel(size_t samples_per_channel);
|
||||
|
||||
@ -95,14 +95,6 @@ Limiter::Limiter(ApmDataDumper* apm_data_dumper,
|
||||
RTC_DCHECK_LE(samples_per_channel, kMaximalNumberOfSamplesPerChannel);
|
||||
}
|
||||
|
||||
// Deprecated ctor.
|
||||
Limiter::Limiter(int sample_rate_hz,
|
||||
ApmDataDumper* apm_data_dumper,
|
||||
absl::string_view histogram_name_prefix)
|
||||
: Limiter(apm_data_dumper,
|
||||
SampleRateToDefaultChannelSize(sample_rate_hz),
|
||||
histogram_name_prefix) {}
|
||||
|
||||
Limiter::~Limiter() = default;
|
||||
|
||||
void Limiter::Process(DeinterleavedView<float> signal) {
|
||||
|
||||
@ -29,11 +29,6 @@ class Limiter {
|
||||
size_t samples_per_channel,
|
||||
absl::string_view histogram_name_prefix);
|
||||
|
||||
[[deprecated("Use constructor that accepts samples_per_channel")]] Limiter(
|
||||
int sample_rate_hz,
|
||||
ApmDataDumper* apm_data_dumper,
|
||||
absl::string_view histogram_name_prefix);
|
||||
|
||||
Limiter(const Limiter& limiter) = delete;
|
||||
Limiter& operator=(const Limiter& limiter) = delete;
|
||||
~Limiter();
|
||||
@ -41,10 +36,6 @@ class Limiter {
|
||||
// Applies limiter and hard-clipping to `signal`.
|
||||
void Process(DeinterleavedView<float> signal);
|
||||
|
||||
[[deprecated("Use DeinterleavedView version")]] void Process(
|
||||
AudioFrameView<float> signal) {
|
||||
return Process(signal.view());
|
||||
}
|
||||
InterpolatedGainCurve::Stats GetGainCurveStats() const;
|
||||
|
||||
// Supported values must be
|
||||
@ -53,11 +44,6 @@ class Limiter {
|
||||
// fit in the per_sample_scaling_factors_ array.
|
||||
void SetSamplesPerChannel(size_t samples_per_channel);
|
||||
|
||||
[[deprecated("Use SetSamplesPerChannel")]] void SetSampleRate(
|
||||
int sample_rate_hz) {
|
||||
SetSamplesPerChannel(SampleRateToDefaultChannelSize(sample_rate_hz));
|
||||
}
|
||||
|
||||
// Resets the internal state.
|
||||
void Reset();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user