OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 const std::string& content_name, | 329 const std::string& content_name, |
330 bool rtcp); | 330 bool rtcp); |
331 ~VoiceChannel(); | 331 ~VoiceChannel(); |
332 bool Init(); | 332 bool Init(); |
333 | 333 |
334 // Configure sending media on the stream with SSRC |ssrc| | 334 // Configure sending media on the stream with SSRC |ssrc| |
335 // If there is only one sending stream SSRC 0 can be used. | 335 // If there is only one sending stream SSRC 0 can be used. |
336 bool SetAudioSend(uint32_t ssrc, | 336 bool SetAudioSend(uint32_t ssrc, |
337 bool enable, | 337 bool enable, |
338 const AudioOptions* options, | 338 const AudioOptions* options, |
339 AudioRenderer* renderer); | 339 AudioSource* source); |
340 | 340 |
341 // downcasts a MediaChannel | 341 // downcasts a MediaChannel |
342 virtual VoiceMediaChannel* media_channel() const { | 342 virtual VoiceMediaChannel* media_channel() const { |
343 return static_cast<VoiceMediaChannel*>(BaseChannel::media_channel()); | 343 return static_cast<VoiceMediaChannel*>(BaseChannel::media_channel()); |
344 } | 344 } |
345 | 345 |
346 void SetEarlyMedia(bool enable); | 346 void SetEarlyMedia(bool enable); |
347 // This signal is emitted when we have gone a period of time without | 347 // This signal is emitted when we have gone a period of time without |
348 // receiving early media. When received, a UI should start playing its | 348 // receiving early media. When received, a UI should start playing its |
349 // own ringing sound | 349 // own ringing sound |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 // SetSendParameters. | 597 // SetSendParameters. |
598 DataSendParameters last_send_params_; | 598 DataSendParameters last_send_params_; |
599 // Last DataRecvParameters sent down to the media_channel() via | 599 // Last DataRecvParameters sent down to the media_channel() via |
600 // SetRecvParameters. | 600 // SetRecvParameters. |
601 DataRecvParameters last_recv_params_; | 601 DataRecvParameters last_recv_params_; |
602 }; | 602 }; |
603 | 603 |
604 } // namespace cricket | 604 } // namespace cricket |
605 | 605 |
606 #endif // WEBRTC_PC_CHANNEL_H_ | 606 #endif // WEBRTC_PC_CHANNEL_H_ |
OLD | NEW |