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

Side by Side Diff: webrtc/audio_send_stream.h

Issue 1955363003: Configure VoE NACK through AudioSendStream::Config. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: misc Created 4 years, 6 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool typing_noise_detected = false; 49 bool typing_noise_detected = false;
50 }; 50 };
51 51
52 struct Config { 52 struct Config {
53 Config() = delete; 53 Config() = delete;
54 explicit Config(Transport* send_transport) 54 explicit Config(Transport* send_transport)
55 : send_transport(send_transport) {} 55 : send_transport(send_transport) {}
56 56
57 std::string ToString() const; 57 std::string ToString() const;
58 58
59 // Receive-stream specific RTP settings. 59 // Send-stream specific RTP settings.
60 struct Rtp { 60 struct Rtp {
61 std::string ToString() const; 61 std::string ToString() const;
62 62
63 // Sender SSRC. 63 // Sender SSRC.
64 uint32_t ssrc = 0; 64 uint32_t ssrc = 0;
65 65
66 // RTP header extensions used for the sent stream. 66 // RTP header extensions used for the sent stream.
67 std::vector<RtpExtension> extensions; 67 std::vector<RtpExtension> extensions;
68 68
69 // See NackConfig for description.
70 NackConfig nack;
71
69 // RTCP CNAME, see RFC 3550. 72 // RTCP CNAME, see RFC 3550.
70 std::string c_name; 73 std::string c_name;
71 } rtp; 74 } rtp;
72 75
73 // Transport for outgoing packets. The transport is expected to exist for 76 // Transport for outgoing packets. The transport is expected to exist for
74 // the entire life of the AudioSendStream and is owned by the API client. 77 // the entire life of the AudioSendStream and is owned by the API client.
75 Transport* send_transport = nullptr; 78 Transport* send_transport = nullptr;
76 79
77 // Underlying VoiceEngine handle, used to map AudioSendStream to lower-level 80 // Underlying VoiceEngine handle, used to map AudioSendStream to lower-level
78 // components. 81 // components.
(...skipping 20 matching lines...) Expand all
99 virtual bool SendTelephoneEvent(int payload_type, int event, 102 virtual bool SendTelephoneEvent(int payload_type, int event,
100 int duration_ms) = 0; 103 int duration_ms) = 0;
101 virtual Stats GetStats() const = 0; 104 virtual Stats GetStats() const = 0;
102 105
103 protected: 106 protected:
104 virtual ~AudioSendStream() {} 107 virtual ~AudioSendStream() {}
105 }; 108 };
106 } // namespace webrtc 109 } // namespace webrtc
107 110
108 #endif // WEBRTC_AUDIO_SEND_STREAM_H_ 111 #endif // WEBRTC_AUDIO_SEND_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698