commit | 683f3165f95abc345603ef1c2385677a0a70218d | [log] [tgz] |
---|---|---|
author | Tommi <tommi@webrtc.org> | Sun Apr 23 07:36:09 2023 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 24 10:05:35 2023 |
tree | 6a8cdff79aead774218fc7b667b07839c9b83a72 | |
parent | 4e0bdf550ba39c9088c99fa722b748c0a55c5e9d [diff] |
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}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.