AcmReceiver: Make a member variable const
This is a minor clean-up made possible by simplifications done in the past. Bug: none Change-Id: Id0ea167572f8da36db5de949441f67a2a18555be Reviewed-on: https://chromium-review.googlesource.com/528073 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#18490}
This commit is contained in:

committed by
Commit Bot

parent
88f94fa36a
commit
02ed201182
@ -37,7 +37,7 @@ AcmReceiver::AcmReceiver(const AudioCodingModule::Config& config)
|
||||
neteq_(NetEq::Create(config.neteq_config, config.decoder_factory)),
|
||||
clock_(config.clock),
|
||||
resampled_last_output_frame_(true) {
|
||||
assert(clock_);
|
||||
RTC_DCHECK(clock_);
|
||||
memset(last_audio_buffer_.get(), 0, AudioFrame::kMaxDataSizeSamples);
|
||||
}
|
||||
|
||||
|
@ -282,7 +282,7 @@ class AcmReceiver {
|
||||
std::unique_ptr<int16_t[]> last_audio_buffer_ GUARDED_BY(crit_sect_);
|
||||
CallStatistics call_stats_ GUARDED_BY(crit_sect_);
|
||||
NetEq* neteq_;
|
||||
Clock* clock_; // TODO(henrik.lundin) Make const if possible.
|
||||
const Clock* const clock_;
|
||||
bool resampled_last_output_frame_ GUARDED_BY(crit_sect_);
|
||||
rtc::Optional<int> last_packet_sample_rate_hz_ GUARDED_BY(crit_sect_);
|
||||
};
|
||||
|
Reference in New Issue
Block a user