webrtc::AudioSendStream: Add lock annotation to audio_level_

This is a follow-up CL to https://webrtc-review.googlesource.com/c/src/+/176741

Bug: webrtc:11567
Change-Id: Ic64aec56534efc3229a1d9fa61552db4b83cae4c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178780
Reviewed-by: Markus Handell <handellm@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31638}
This commit is contained in:
Sam Zackrisson
2020-07-06 17:46:36 +02:00
committed by Commit Bot
parent b3a6816b3e
commit a166a353fb

View File

@ -170,7 +170,7 @@ class AudioSendStream final : public webrtc::AudioSendStream,
mutable Mutex audio_level_lock_; mutable Mutex audio_level_lock_;
// Keeps track of audio level, total audio energy and total samples duration. // Keeps track of audio level, total audio energy and total samples duration.
// https://w3c.github.io/webrtc-stats/#dom-rtcaudiohandlerstats-totalaudioenergy // https://w3c.github.io/webrtc-stats/#dom-rtcaudiohandlerstats-totalaudioenergy
webrtc::voe::AudioLevel audio_level_; webrtc::voe::AudioLevel audio_level_ RTC_GUARDED_BY(audio_level_lock_);
BitrateAllocatorInterface* const bitrate_allocator_ BitrateAllocatorInterface* const bitrate_allocator_
RTC_GUARDED_BY(worker_queue_); RTC_GUARDED_BY(worker_queue_);