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

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

Issue 2942503002: Detailed description will be added. (Closed)
Patch Set: Suggested changes to comments Created 3 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
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/pc/BUILD.gn » ('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) 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void OnReadyToSend(bool ready) override; 210 void OnReadyToSend(bool ready) override;
211 void OnTransportOverheadChanged(int transport_overhead_per_packet) override; 211 void OnTransportOverheadChanged(int transport_overhead_per_packet) override;
212 bool GetStats(VoiceMediaInfo* info) override; 212 bool GetStats(VoiceMediaInfo* info) override;
213 213
214 // SSRC=0 will set the audio sink on the latest unsignaled stream, future or 214 // SSRC=0 will set the audio sink on the latest unsignaled stream, future or
215 // current. Only one stream at a time will use the sink. 215 // current. Only one stream at a time will use the sink.
216 void SetRawAudioSink( 216 void SetRawAudioSink(
217 uint32_t ssrc, 217 uint32_t ssrc,
218 std::unique_ptr<webrtc::AudioSinkInterface> sink) override; 218 std::unique_ptr<webrtc::AudioSinkInterface> sink) override;
219 219
220 std::vector<webrtc::RtpSource> GetSources(uint32_t ssrc) const; 220 std::vector<webrtc::RtpSource> GetSources(uint32_t ssrc) const override;
221 221
222 // implements Transport interface 222 // implements Transport interface
223 bool SendRtp(const uint8_t* data, 223 bool SendRtp(const uint8_t* data,
224 size_t len, 224 size_t len,
225 const webrtc::PacketOptions& options) override { 225 const webrtc::PacketOptions& options) override {
226 rtc::CopyOnWriteBuffer packet(data, len, kMaxRtpPacketLen); 226 rtc::CopyOnWriteBuffer packet(data, len, kMaxRtpPacketLen);
227 rtc::PacketOptions rtc_options; 227 rtc::PacketOptions rtc_options;
228 rtc_options.packet_id = options.packet_id; 228 rtc_options.packet_id = options.packet_id;
229 return VoiceMediaChannel::SendPacket(&packet, rtc_options); 229 return VoiceMediaChannel::SendPacket(&packet, rtc_options);
230 } 230 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 298 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
299 299
300 rtc::Optional<webrtc::AudioSendStream::Config::SendCodecSpec> 300 rtc::Optional<webrtc::AudioSendStream::Config::SendCodecSpec>
301 send_codec_spec_; 301 send_codec_spec_;
302 302
303 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 303 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
304 }; 304 };
305 } // namespace cricket 305 } // namespace cricket
306 306
307 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ 307 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698