diff options
author | solenberg <solenberg@webrtc.org> | 2015-11-06 15:34:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-06 23:34:58 +0000 |
commit | 566ef247b9779f6c9d0e7ec9eea6b037f4682c53 (patch) | |
tree | b26cdb03d6c5840b7e39146db5953a4e2536a4dc /webrtc/audio/audio_send_stream.h | |
parent | 19299fb28b2578d721649fff65419d4eb9ea1af3 (diff) | |
download | webrtc-566ef247b9779f6c9d0e7ec9eea6b037f4682c53.tar.gz |
Move VoiceEngineObserver into AudioSendStream so that we detect typing noises and return properly in GetStats().
BUG=webrtc:4690
Review URL: https://codereview.webrtc.org/1403363003
Cr-Commit-Position: refs/heads/master@{#10548}
Diffstat (limited to 'webrtc/audio/audio_send_stream.h')
-rw-r--r-- | webrtc/audio/audio_send_stream.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/webrtc/audio/audio_send_stream.h b/webrtc/audio/audio_send_stream.h index ae81dfc8fc..3d911c1f5f 100644 --- a/webrtc/audio/audio_send_stream.h +++ b/webrtc/audio/audio_send_stream.h @@ -12,20 +12,16 @@ #define WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ #include "webrtc/audio_send_stream.h" -#include "webrtc/audio/scoped_voe_interface.h" +#include "webrtc/audio_state.h" #include "webrtc/base/thread_checker.h" -#include "webrtc/voice_engine/include/voe_base.h" namespace webrtc { - -class VoiceEngine; - namespace internal { class AudioSendStream final : public webrtc::AudioSendStream { public: AudioSendStream(const webrtc::AudioSendStream::Config& config, - VoiceEngine* voice_engine); + const rtc::scoped_refptr<webrtc::AudioState>& audio_state); ~AudioSendStream() override; // webrtc::SendStream implementation. @@ -42,9 +38,7 @@ class AudioSendStream final : public webrtc::AudioSendStream { private: rtc::ThreadChecker thread_checker_; const webrtc::AudioSendStream::Config config_; - VoiceEngine* voice_engine_; - // We hold one interface pointer to the VoE to make sure it is kept alive. - ScopedVoEInterface<VoEBase> voe_base_; + rtc::scoped_refptr<webrtc::AudioState> audio_state_; RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); }; |