Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: webrtc/voice_engine/audio_level.h

Issue 3012853002: Update thread annotiation macros to use RTC_ prefix (Closed)
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/video_stream_encoder_unittest.cc ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 27 matching lines...) Expand all
38 // Called on a native capture audio thread (platform dependent) from the 38 // Called on a native capture audio thread (platform dependent) from the
39 // AudioTransport::RecordedDataIsAvailable() callback. 39 // AudioTransport::RecordedDataIsAvailable() callback.
40 // In Chrome, this method is called on the AudioInputDevice thread. 40 // In Chrome, this method is called on the AudioInputDevice thread.
41 void ComputeLevel(const AudioFrame& audioFrame, double duration); 41 void ComputeLevel(const AudioFrame& audioFrame, double duration);
42 42
43 private: 43 private:
44 enum { kUpdateFrequency = 10 }; 44 enum { kUpdateFrequency = 10 };
45 45
46 rtc::CriticalSection crit_sect_; 46 rtc::CriticalSection crit_sect_;
47 47
48 int16_t abs_max_ GUARDED_BY(crit_sect_); 48 int16_t abs_max_ RTC_GUARDED_BY(crit_sect_);
49 int16_t count_ GUARDED_BY(crit_sect_); 49 int16_t count_ RTC_GUARDED_BY(crit_sect_);
50 int8_t current_level_ GUARDED_BY(crit_sect_); 50 int8_t current_level_ RTC_GUARDED_BY(crit_sect_);
51 int16_t current_level_full_range_ GUARDED_BY(crit_sect_); 51 int16_t current_level_full_range_ RTC_GUARDED_BY(crit_sect_);
52 52
53 double total_energy_ GUARDED_BY(crit_sect_) = 0.0; 53 double total_energy_ RTC_GUARDED_BY(crit_sect_) = 0.0;
54 double total_duration_ GUARDED_BY(crit_sect_) = 0.0; 54 double total_duration_ RTC_GUARDED_BY(crit_sect_) = 0.0;
55 }; 55 };
56 56
57 } // namespace voe 57 } // namespace voe
58 } // namespace webrtc 58 } // namespace webrtc
59 59
60 #endif // WEBRTC_VOICE_ENGINE_AUDIO_LEVEL_H_ 60 #endif // WEBRTC_VOICE_ENGINE_AUDIO_LEVEL_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_stream_encoder_unittest.cc ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698