OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #include "webrtc/audio/audio_send_stream.h" | |
12 | |
13 #include <string> | |
14 | |
15 #include "webrtc/base/checks.h" | |
16 | |
17 namespace webrtc { | |
18 std::string AudioSendStream::Config::Rtp::ToString() const { | |
tommi
2015/10/14 13:21:18
is this needed for debugging purposes? If so, can
the sun
2015/10/14 14:25:24
I like that idea, but it runs deeper than just thi
stefan-webrtc
2015/10/14 14:29:22
This string is used to LOG the stream configuratio
| |
19 std::stringstream ss; | |
20 ss << "{ssrc: " << ssrc; | |
21 ss << ", extensions: ["; | |
22 for (size_t i = 0; i < extensions.size(); ++i) { | |
tommi
2015/10/14 13:21:18
use range based loop?
the sun
2015/10/14 14:25:24
With the conditional "ss << ", ";" below, I don't
tommi
2015/10/14 14:49:28
Acknowledged.
| |
23 ss << extensions[i].ToString(); | |
24 if (i != extensions.size() - 1) | |
25 ss << ", "; | |
26 } | |
27 ss << ']'; | |
28 ss << '}'; | |
29 return ss.str(); | |
30 } | |
31 | |
32 std::string AudioSendStream::Config::ToString() const { | |
33 std::stringstream ss; | |
34 ss << "{rtp: " << rtp.ToString(); | |
35 ss << ", voe_channel_id: " << voe_channel_id; | |
36 // TODO(solenberg): Encoder config. | |
37 ss << ", cng_payload_type: " << cng_payload_type; | |
38 ss << ", red_payload_type: " << red_payload_type; | |
39 ss << '}'; | |
40 return ss.str(); | |
41 } | |
42 | |
43 namespace internal { | |
44 AudioSendStream::AudioSendStream(const webrtc::AudioSendStream::Config& config) | |
45 : config_(config) { | |
46 RTC_DCHECK(config.voe_channel_id != -1); | |
47 } | |
48 | |
49 webrtc::AudioSendStream::Stats AudioSendStream::GetStats() const { | |
50 return webrtc::AudioSendStream::Stats(); | |
51 } | |
52 | |
53 void AudioSendStream::Start() { | |
54 } | |
55 | |
56 void AudioSendStream::Stop() { | |
57 } | |
58 | |
59 void AudioSendStream::SignalNetworkState(NetworkState state) { | |
60 } | |
61 | |
62 bool AudioSendStream::DeliverRtcp(const uint8_t* packet, size_t length) { | |
63 return false; | |
64 } | |
65 } // namespace internal | |
66 } // namespace webrtc | |
OLD | NEW |