webrtc/modules/audio_coding
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
..
acm2 Remove PushResampler<T>::InitializeIfNeeded 2024-07-04 10:33:21 +00:00
audio_network_adaptor Remove expired field trial UseTwccPlrForAna 2024-04-15 14:26:33 +00:00
codecs Add AudioEncoderOpus constructors that use field trials from Environment 2024-06-26 15:25:23 +00:00
g3doc Reland "Migrate WebRTC documentation to new renderer" 2023-01-31 09:30:04 +00:00
include Computing and propagating the audio stats totalprocessingdelay. 2024-06-18 08:05:28 +00:00
neteq Computing and propagating the audio stats totalprocessingdelay. 2024-06-18 08:05:28 +00:00
test Provide Environment to create an audio encoder in tests 2024-06-26 12:54:36 +00:00
audio_coding.gni Reland "[ACM] iSAC audio codec removed" 2022-11-17 12:52:35 +00:00
BUILD.gn Add AudioEncoderOpus constructors that use field trials from Environment 2024-06-26 15:25:23 +00:00
DEPS Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
OWNERS Add jakobi to modules/audio_coding OWNERS 2021-06-18 11:52:58 +00:00