Index: webrtc/audio_send_stream.h |
diff --git a/webrtc/audio_send_stream.h b/webrtc/audio_send_stream.h |
index 9ac78da06d256f76fab754d41b011b4c03f1cada..7ae6afd38ca908e18410d3cd0240ee4860b76d41 100644 |
--- a/webrtc/audio_send_stream.h |
+++ b/webrtc/audio_send_stream.h |
@@ -18,6 +18,7 @@ |
#include "webrtc/config.h" |
#include "webrtc/modules/audio_coding/codecs/audio_encoder.h" |
#include "webrtc/stream.h" |
+#include "webrtc/transport.h" |
#include "webrtc/typedefs.h" |
namespace webrtc { |
@@ -27,6 +28,10 @@ class AudioSendStream : public SendStream { |
struct Stats {}; |
struct Config { |
+ Config() = delete; |
+ explicit Config(newapi::Transport* send_transport) |
+ : send_transport(send_transport) {} |
+ |
std::string ToString() const; |
// Receive-stream specific RTP settings. |
@@ -40,6 +45,9 @@ class AudioSendStream : public SendStream { |
std::vector<RtpExtension> extensions; |
} rtp; |
+ // Transport for outgoing packets. |
+ newapi::Transport* send_transport = nullptr; |
+ |
rtc::scoped_ptr<AudioEncoder> encoder; |
int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator. |
int red_payload_type = -1; // pt, or -1 to disable REDundant coding. |