| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 rtc::ThreadChecker thread_checker_; | 41 rtc::ThreadChecker thread_checker_; |
| 42 rtc::ThreadChecker process_thread_checker_; | 42 rtc::ThreadChecker process_thread_checker_; |
| 43 const webrtc::AudioState::Config config_; | 43 const webrtc::AudioState::Config config_; |
| 44 | 44 |
| 45 // We hold one interface pointer to the VoE to make sure it is kept alive. | 45 // We hold one interface pointer to the VoE to make sure it is kept alive. |
| 46 ScopedVoEInterface<VoEBase> voe_base_; | 46 ScopedVoEInterface<VoEBase> voe_base_; |
| 47 | 47 |
| 48 // The critical section isn't strictly needed in this case, but xSAN bots may | 48 // The critical section isn't strictly needed in this case, but xSAN bots may |
| 49 // trigger on unprotected cross-thread access. | 49 // trigger on unprotected cross-thread access. |
| 50 mutable rtc::CriticalSection crit_sect_; | 50 rtc::CriticalSection crit_sect_; |
| 51 bool typing_noise_detected_ GUARDED_BY(crit_sect_) = false; | 51 bool typing_noise_detected_ GUARDED_BY(crit_sect_) = false; |
| 52 | 52 |
| 53 // Reference count; implementation copied from rtc::RefCountedObject. | 53 // Reference count; implementation copied from rtc::RefCountedObject. |
| 54 mutable volatile int ref_count_ = 0; | 54 mutable volatile int ref_count_ = 0; |
| 55 | 55 |
| 56 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState); | 56 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState); |
| 57 }; | 57 }; |
| 58 } // namespace internal | 58 } // namespace internal |
| 59 } // namespace webrtc | 59 } // namespace webrtc |
| 60 | 60 |
| 61 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_ | 61 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_ |
| OLD | NEW |