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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.h

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Fix the issues. Make it ready for another round of review. Add a test. Created 3 years, 7 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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void OnReadyToSend(bool ready) override; 206 void OnReadyToSend(bool ready) override;
207 void OnTransportOverheadChanged(int transport_overhead_per_packet) override; 207 void OnTransportOverheadChanged(int transport_overhead_per_packet) override;
208 bool GetStats(VoiceMediaInfo* info) override; 208 bool GetStats(VoiceMediaInfo* info) override;
209 209
210 // SSRC=0 will set the audio sink on the latest unsignaled stream, future or 210 // SSRC=0 will set the audio sink on the latest unsignaled stream, future or
211 // current. Only one stream at a time will use the sink. 211 // current. Only one stream at a time will use the sink.
212 void SetRawAudioSink( 212 void SetRawAudioSink(
213 uint32_t ssrc, 213 uint32_t ssrc,
214 std::unique_ptr<webrtc::AudioSinkInterface> sink) override; 214 std::unique_ptr<webrtc::AudioSinkInterface> sink) override;
215 215
216 std::vector<webrtc::RtpSource> GetSources(uint32_t ssrc) const; 216 std::vector<webrtc::RtpSource> GetSources(uint32_t ssrc) const override;
217 217
218 // implements Transport interface 218 // implements Transport interface
219 bool SendRtp(const uint8_t* data, 219 bool SendRtp(const uint8_t* data,
220 size_t len, 220 size_t len,
221 const webrtc::PacketOptions& options) override { 221 const webrtc::PacketOptions& options) override {
222 rtc::CopyOnWriteBuffer packet(data, len, kMaxRtpPacketLen); 222 rtc::CopyOnWriteBuffer packet(data, len, kMaxRtpPacketLen);
223 rtc::PacketOptions rtc_options; 223 rtc::PacketOptions rtc_options;
224 rtc_options.packet_id = options.packet_id; 224 rtc_options.packet_id = options.packet_id;
225 return VoiceMediaChannel::SendPacket(&packet, rtc_options); 225 return VoiceMediaChannel::SendPacket(&packet, rtc_options);
226 } 226 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 294 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
295 295
296 rtc::Optional<webrtc::AudioSendStream::Config::SendCodecSpec> 296 rtc::Optional<webrtc::AudioSendStream::Config::SendCodecSpec>
297 send_codec_spec_; 297 send_codec_spec_;
298 298
299 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 299 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
300 }; 300 };
301 } // namespace cricket 301 } // namespace cricket
302 302
303 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ 303 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698