Remove top-level const from parameters in function declarations.
This is a safe cleanup change since top-level const applied to parameters in function declarations (that are not also definitions) are ignored by the compiler. Hence, such changes do not change the type of the declared functions and are simply no-ops. Bug: webrtc:13610 Change-Id: Ibafb92c45119a6d8bdb6f9109aa8dad6385163a9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249086 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35802}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
c98687a2ef
commit
62238097c9
@ -85,10 +85,10 @@ constexpr size_t GetRenderDelayBufferSize(size_t down_sampling_factor,
|
||||
Aec3Optimization DetectOptimization();
|
||||
|
||||
// Computes the log2 of the input in a fast an approximate manner.
|
||||
float FastApproxLog2f(const float in);
|
||||
float FastApproxLog2f(float in);
|
||||
|
||||
// Returns dB from a power quantity expressed in log2.
|
||||
float Log2TodB(const float in_log2);
|
||||
float Log2TodB(float in_log2);
|
||||
|
||||
static_assert(1 << kBlockSizeLog2 == kBlockSize,
|
||||
"Proper number of shifts for blocksize");
|
||||
|
||||
@ -67,7 +67,7 @@ class FullBandErleEstimator {
|
||||
// Updates the estimator with a new point, returns true
|
||||
// if the instantaneous ERLE was updated due to having enough
|
||||
// points for performing the estimate.
|
||||
bool Update(const float Y2_sum, const float E2_sum);
|
||||
bool Update(float Y2_sum, float E2_sum);
|
||||
// Resets the instantaneous ERLE estimator to its initial state.
|
||||
void Reset();
|
||||
// Resets the members related with an instantaneous estimate.
|
||||
|
||||
@ -248,7 +248,7 @@ int WebRtcAecm_ProcessBlock(AecmCore* aecm,
|
||||
//
|
||||
void WebRtcAecm_BufferFarFrame(AecmCore* const aecm,
|
||||
const int16_t* const farend,
|
||||
const int farLen);
|
||||
int farLen);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// WebRtcAecm_FetchFarFrame()
|
||||
@ -263,8 +263,8 @@ void WebRtcAecm_BufferFarFrame(AecmCore* const aecm,
|
||||
//
|
||||
void WebRtcAecm_FetchFarFrame(AecmCore* const aecm,
|
||||
int16_t* const farend,
|
||||
const int farLen,
|
||||
const int knownDelay);
|
||||
int farLen,
|
||||
int knownDelay);
|
||||
|
||||
// All the functions below are intended to be private
|
||||
|
||||
@ -374,9 +374,9 @@ int16_t WebRtcAecm_CalcStepSize(AecmCore* const aecm);
|
||||
//
|
||||
void WebRtcAecm_UpdateChannel(AecmCore* aecm,
|
||||
const uint16_t* far_spectrum,
|
||||
const int16_t far_q,
|
||||
int16_t far_q,
|
||||
const uint16_t* const dfa,
|
||||
const int16_t mu,
|
||||
int16_t mu,
|
||||
int32_t* echoEst);
|
||||
|
||||
extern const int16_t WebRtcAecm_kCosTable[];
|
||||
|
||||
@ -48,8 +48,8 @@ class FakeRecordingDevice final {
|
||||
~FakeRecordingDevice();
|
||||
|
||||
int MicLevel() const;
|
||||
void SetMicLevel(const int level);
|
||||
void SetUndoMicLevel(const int level);
|
||||
void SetMicLevel(int level);
|
||||
void SetUndoMicLevel(int level);
|
||||
|
||||
// Simulates the analog gain.
|
||||
// If `real_device_level` is a valid level, the unmodified mic signal is
|
||||
|
||||
Reference in New Issue
Block a user