webrtc/modules/audio_coding/acm2
Tommi d6ef33e59b Remove PushResampler<T>::InitializeIfNeeded
This switches from accepting a sample rate and convert to channel
size over to accepting the channel size.

Instead of InitializeIfNeeded:

* Offer a way to explicitly initialize PushResampler via the ctor
  (needed for VoiceActivityDetectorWrapper)
* Implicitly check for the right configuration from within Resample().
  (All calls to Resample() were preceded by a call to Initialize)

As part of this, refactor VoiceActivityDetectorWrapper (VADW):
* VADW is now initialized in the constructor and more const.
* Remove VADW::Initialize() and instead reconstruct VADW if needed.

Add constants for max sample rate and num channels to audio_util.h
In many cases the numbers for these values are embedded in the code
which has led to some inconsistency.

Bug: chromium:335805780
Change-Id: Iead0d52eb1b261a8d64e93f51401147c8fba32f0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/353360
Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42587}
2024-07-04 10:33:21 +00:00
..
acm_receive_test.cc Propagate arrival time inside NetEq 2024-05-30 14:21:42 +00:00
acm_receive_test.h Break apart AudioCodingModule and AcmReceiver 2023-02-01 16:09:26 +00:00
acm_receiver.cc Computing and propagating the audio stats totalprocessingdelay. 2024-06-18 08:05:28 +00:00
acm_receiver.h Delete unused methods 2024-05-30 14:55:10 +00:00
acm_receiver_unittest.cc Provide Environment to create an audio encoder in tests 2024-06-26 12:54:36 +00:00
acm_remixing.cc ACM: Adding unittests for the remixing functionality 2019-11-20 06:20:22 +00:00
acm_remixing.h [iwyu][1\n] Applying to api/[a-s]* 2024-06-19 06:19:20 +00:00
acm_remixing_unittest.cc Add audio view classes 2024-05-24 18:08:37 +00:00
acm_resampler.cc Remove PushResampler<T>::InitializeIfNeeded 2024-07-04 10:33:21 +00:00
acm_resampler.h Add audio view classes 2024-05-24 18:08:37 +00:00
acm_send_test.cc Provide Environment to create an audio encoder in tests 2024-06-26 12:54:36 +00:00
acm_send_test.h Provide Environment to create an audio encoder in tests 2024-06-26 12:54:36 +00:00
audio_coding_module.cc Use absolute capture timestamp from the beginning of payload 2024-05-13 08:10:56 +00:00
audio_coding_module_unittest.cc Provide Environment to create an audio encoder in tests 2024-06-26 12:54:36 +00:00
call_statistics.cc Prepare to rename RTC_NOTREACHED to RTC_DCHECK_NOTREACHED 2021-11-15 21:44:59 +00:00
call_statistics.h Use backticks not vertical bars to denote variables in comments for /modules/audio_coding 2021-08-02 10:45:40 +00:00
call_statistics_unittest.cc Reland of "Reporting of decoding_codec_plc events"" 2019-08-07 18:41:46 +00:00