webrtc/modules/audio_mixer
Tommi 683f3165f9 Add slightly more constness to SourceFrame and the embedded AudioFrame
This makes it a bit more clear that values of member variables of
SourceFrame are never directly changed and that doing so is not an
intentional part of the design. Also made use of `SourceFrame` vs
`const SourceFrame` more consistent since the audio frame of a
`const SourceFrame` was being modified in some places.

Accessing the embedded AudioFrame can be done via the const
audio_frame() accessor or via the mutable_audio_frame() accessor when
modifying the frame is needed. This helps with clarifying later on
when downstream code paths such as ones that access the `packet_infos_`
data, can know that it won't be modified for the rest of the frame's
lifetime (thus avoiding having to make copies).

Bug: none
Change-Id: I175cec8fcdb85063239a5f9c299b7878c639f00e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/302383
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39926}
2023-04-24 10:05:35 +00:00
..
g3doc Reland "Migrate WebRTC documentation to new renderer" 2023-01-31 09:30:04 +00:00
audio_frame_manipulator.cc Enables usage of ChannelMixer in WebRTC's output mixer. 2019-07-09 14:49:47 +00:00
audio_frame_manipulator.h [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
audio_frame_manipulator_unittest.cc Format almost everything. 2019-07-08 13:45:15 +00:00
audio_mixer_impl.cc Add slightly more constness to SourceFrame and the embedded AudioFrame 2023-04-24 10:05:35 +00:00
audio_mixer_impl.h Add histogram for audio mixer maximum source count. 2023-04-12 17:48:40 +00:00
audio_mixer_impl_unittest.cc Add histogram for audio mixer maximum source count. 2023-04-12 17:48:40 +00:00
audio_mixer_test.cc Adopt absl::string_view in modules/audio_mixer/ 2022-08-16 09:07:35 +00:00
BUILD.gn Add histogram for audio mixer maximum source count. 2023-04-12 17:48:40 +00:00
default_output_rate_calculator.cc Move dynamic memory allocations of webrtc::AudioMixerImpl from RT thead 2020-10-19 13:13:22 +00:00
default_output_rate_calculator.h Use backticks not vertical bars to denote variables in comments for /modules/audio_mixer 2021-08-02 11:10:59 +00:00
DEPS Enables usage of ChannelMixer in WebRTC's output mixer. 2019-07-09 14:49:47 +00:00
frame_combiner.cc Remove FrameCombiner stats 2022-11-16 15:39:24 +00:00
frame_combiner.h Remove unused enum FrameCombiner::LimiterType 2023-01-25 10:15:15 +00:00
frame_combiner_unittest.cc Remove unused enum FrameCombiner::LimiterType 2023-01-25 10:15:15 +00:00
gain_change_calculator.cc Format almost everything. 2019-07-08 13:45:15 +00:00
gain_change_calculator.h [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
output_rate_calculator.h Cleanup after sorting out dependencies of OutputRateCalculator 2020-10-20 13:01:29 +00:00
OWNERS Add conceptual documentation for Audio - Mixer 2021-04-22 08:59:38 +00:00
sine_wave_generator.cc [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
sine_wave_generator.h [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00