aboutsummaryrefslogtreecommitdiff
path: root/webrtc/audio/audio_send_stream.h
diff options
context:
space:
mode:
authorsolenberg <solenberg@webrtc.org>2015-11-25 08:16:52 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-25 16:16:57 +0000
commit13725089ef91f932b37b2447c3f05d9cd9f89984 (patch)
treea381de4f837aa78226737443927dc162910dedfb /webrtc/audio/audio_send_stream.h
parent54eb5e2e9ae91e9ad6dcb297de7b918ebe706d5f (diff)
downloadwebrtc-13725089ef91f932b37b2447c3f05d9cd9f89984.tar.gz
Open backdoor in VoiceEngineImpl to get at the actual voe::Channel objects from an ID.
This will allow Audio[Send|Receive]Stream to bypass the VoE interfaces in many cases and talk directly to the channel. BUG=webrtc:4690 Review URL: https://codereview.webrtc.org/1459083007 Cr-Commit-Position: refs/heads/master@{#10788}
Diffstat (limited to 'webrtc/audio/audio_send_stream.h')
-rw-r--r--webrtc/audio/audio_send_stream.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/webrtc/audio/audio_send_stream.h b/webrtc/audio/audio_send_stream.h
index a4eb89d169..b670efee3c 100644
--- a/webrtc/audio/audio_send_stream.h
+++ b/webrtc/audio/audio_send_stream.h
@@ -14,13 +14,16 @@
#include "webrtc/audio_send_stream.h"
#include "webrtc/audio_state.h"
#include "webrtc/base/thread_checker.h"
+#include "webrtc/base/scoped_ptr.h"
namespace webrtc {
-
class VoiceEngine;
-namespace internal {
+namespace voe {
+class ChannelProxy;
+} // namespace voe
+namespace internal {
class AudioSendStream final : public webrtc::AudioSendStream {
public:
AudioSendStream(const webrtc::AudioSendStream::Config& config,
@@ -44,6 +47,7 @@ class AudioSendStream final : public webrtc::AudioSendStream {
rtc::ThreadChecker thread_checker_;
const webrtc::AudioSendStream::Config config_;
rtc::scoped_refptr<webrtc::AudioState> audio_state_;
+ rtc::scoped_ptr<voe::ChannelProxy> channel_proxy_;
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream);
};