OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 rtc::ThreadChecker thread_checker_; | 48 rtc::ThreadChecker thread_checker_; |
49 rtc::ThreadChecker process_thread_checker_; | 49 rtc::ThreadChecker process_thread_checker_; |
50 const webrtc::AudioState::Config config_; | 50 const webrtc::AudioState::Config config_; |
51 | 51 |
52 // We hold one interface pointer to the VoE to make sure it is kept alive. | 52 // We hold one interface pointer to the VoE to make sure it is kept alive. |
53 ScopedVoEInterface<VoEBase> voe_base_; | 53 ScopedVoEInterface<VoEBase> voe_base_; |
54 | 54 |
55 // The critical section isn't strictly needed in this case, but xSAN bots may | 55 // The critical section isn't strictly needed in this case, but xSAN bots may |
56 // trigger on unprotected cross-thread access. | 56 // trigger on unprotected cross-thread access. |
57 rtc::CriticalSection crit_sect_; | 57 rtc::CriticalSection crit_sect_; |
58 bool typing_noise_detected_ GUARDED_BY(crit_sect_) = false; | 58 bool typing_noise_detected_ RTC_GUARDED_BY(crit_sect_) = false; |
59 | 59 |
60 // Reference count; implementation copied from rtc::RefCountedObject. | 60 // Reference count; implementation copied from rtc::RefCountedObject. |
61 mutable volatile int ref_count_ = 0; | 61 mutable volatile int ref_count_ = 0; |
62 | 62 |
63 // Transports mixed audio from the mixer to the audio device and | 63 // Transports mixed audio from the mixer to the audio device and |
64 // recorded audio to the VoE AudioTransport. | 64 // recorded audio to the VoE AudioTransport. |
65 AudioTransportProxy audio_transport_proxy_; | 65 AudioTransportProxy audio_transport_proxy_; |
66 | 66 |
67 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState); | 67 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState); |
68 }; | 68 }; |
69 } // namespace internal | 69 } // namespace internal |
70 } // namespace webrtc | 70 } // namespace webrtc |
71 | 71 |
72 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_ | 72 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_ |
OLD | NEW |