Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: webrtc/audio_send_stream.h

Issue 1369263002: Unify Transport and newapi::Transport interfaces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: self-review Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine.h ('k') | webrtc/call/transport_adapter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 #include "webrtc/typedefs.h" 22 #include "webrtc/typedefs.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 25
26 class AudioSendStream : public SendStream { 26 class AudioSendStream : public SendStream {
27 public: 27 public:
28 struct Stats {}; 28 struct Stats {};
29 29
30 struct Config { 30 struct Config {
31 Config() = delete; 31 Config() = delete;
32 explicit Config(newapi::Transport* send_transport) 32 explicit Config(Transport* send_transport)
33 : send_transport(send_transport) {} 33 : send_transport(send_transport) {}
34 34
35 std::string ToString() const; 35 std::string ToString() const;
36 36
37 // Receive-stream specific RTP settings. 37 // Receive-stream specific RTP settings.
38 struct Rtp { 38 struct Rtp {
39 std::string ToString() const; 39 std::string ToString() const;
40 40
41 // Sender SSRC. 41 // Sender SSRC.
42 uint32_t ssrc = 0; 42 uint32_t ssrc = 0;
43 43
44 // RTP header extensions used for the received stream. 44 // RTP header extensions used for the received stream.
45 std::vector<RtpExtension> extensions; 45 std::vector<RtpExtension> extensions;
46 } rtp; 46 } rtp;
47 47
48 // Transport for outgoing packets. 48 // Transport for outgoing packets.
49 newapi::Transport* send_transport = nullptr; 49 Transport* send_transport = nullptr;
50 50
51 rtc::scoped_ptr<AudioEncoder> encoder; 51 rtc::scoped_ptr<AudioEncoder> encoder;
52 int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator. 52 int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator.
53 int red_payload_type = -1; // pt, or -1 to disable REDundant coding. 53 int red_payload_type = -1; // pt, or -1 to disable REDundant coding.
54 }; 54 };
55 55
56 virtual Stats GetStats() const = 0; 56 virtual Stats GetStats() const = 0;
57 }; 57 };
58 } // namespace webrtc 58 } // namespace webrtc
59 59
60 #endif // WEBRTC_AUDIO_SEND_STREAM_H_ 60 #endif // WEBRTC_AUDIO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine.h ('k') | webrtc/call/transport_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698