mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-16 15:20:42 +01:00
![]() 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} |
||
---|---|---|
.. | ||
g3doc | ||
audio_frame_manipulator.cc | ||
audio_frame_manipulator.h | ||
audio_frame_manipulator_unittest.cc | ||
audio_mixer_impl.cc | ||
audio_mixer_impl.h | ||
audio_mixer_impl_unittest.cc | ||
audio_mixer_test.cc | ||
BUILD.gn | ||
default_output_rate_calculator.cc | ||
default_output_rate_calculator.h | ||
DEPS | ||
frame_combiner.cc | ||
frame_combiner.h | ||
frame_combiner_unittest.cc | ||
gain_change_calculator.cc | ||
gain_change_calculator.h | ||
output_rate_calculator.h | ||
OWNERS | ||
sine_wave_generator.cc | ||
sine_wave_generator.h |