Index: webrtc/modules/audio_processing/voice_detection_impl.h |
diff --git a/webrtc/modules/audio_processing/voice_detection_impl.h b/webrtc/modules/audio_processing/voice_detection_impl.h |
index 9735dcde657dc8cf401d6c9447d6e73da57582fe..7972cd7b2c78c6a762d9fad750b1ea0f40568d57 100644 |
--- a/webrtc/modules/audio_processing/voice_detection_impl.h |
+++ b/webrtc/modules/audio_processing/voice_detection_impl.h |
@@ -11,6 +11,7 @@ |
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_VOICE_DETECTION_IMPL_H_ |
#define WEBRTC_MODULES_AUDIO_PROCESSING_VOICE_DETECTION_IMPL_H_ |
+#include "webrtc/base/criticalsection.h" |
#include "webrtc/base/thread_checker.h" |
#include "webrtc/modules/audio_processing/include/audio_processing.h" |
#include "webrtc/modules/audio_processing/processing_component.h" |
@@ -24,7 +25,7 @@ class VoiceDetectionImpl : public VoiceDetection, |
public ProcessingComponent { |
public: |
VoiceDetectionImpl(const AudioProcessing* apm, |
- CriticalSectionWrapper* crit, |
+ rtc::CriticalSection* crit, |
rtc::ThreadChecker* capture_thread); |
virtual ~VoiceDetectionImpl(); |
@@ -55,7 +56,7 @@ class VoiceDetectionImpl : public VoiceDetection, |
int GetHandleError(void* handle) const override; |
const AudioProcessing* apm_; |
- CriticalSectionWrapper* crit_; |
+ rtc::CriticalSection* const crit_; |
const rtc::ThreadChecker* const capture_thread_; |
bool stream_has_voice_; |
bool using_external_vad_; |