OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // WebRtc Voice Engine. | 279 // WebRtc Voice Engine. |
280 class WebRtcVoiceMediaChannel : public VoiceMediaChannel, | 280 class WebRtcVoiceMediaChannel : public VoiceMediaChannel, |
281 public webrtc::Transport { | 281 public webrtc::Transport { |
282 public: | 282 public: |
283 explicit WebRtcVoiceMediaChannel(WebRtcVoiceEngine *engine); | 283 explicit WebRtcVoiceMediaChannel(WebRtcVoiceEngine *engine); |
284 ~WebRtcVoiceMediaChannel() override; | 284 ~WebRtcVoiceMediaChannel() override; |
285 | 285 |
286 int voe_channel() const { return voe_channel_; } | 286 int voe_channel() const { return voe_channel_; } |
287 bool valid() const { return voe_channel_ != -1; } | 287 bool valid() const { return voe_channel_ != -1; } |
288 | 288 |
| 289 bool SetSendParameters(const AudioSendParameters& params) override; |
| 290 bool SetRecvParameters(const AudioRecvParameters& params) override; |
289 bool SetOptions(const AudioOptions& options) override; | 291 bool SetOptions(const AudioOptions& options) override; |
290 bool GetOptions(AudioOptions* options) const override { | 292 bool GetOptions(AudioOptions* options) const override { |
291 *options = options_; | 293 *options = options_; |
292 return true; | 294 return true; |
293 } | 295 } |
294 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs) override; | 296 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs) override; |
295 bool SetSendCodecs(const std::vector<AudioCodec>& codecs) override; | 297 bool SetSendCodecs(const std::vector<AudioCodec>& codecs) override; |
296 bool SetRecvRtpHeaderExtensions( | 298 bool SetRecvRtpHeaderExtensions( |
297 const std::vector<RtpHeaderExtension>& extensions) override; | 299 const std::vector<RtpHeaderExtension>& extensions) override; |
298 bool SetSendRtpHeaderExtensions( | 300 bool SetSendRtpHeaderExtensions( |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 454 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
453 | 455 |
454 // Do not lock this on the VoE media processor thread; potential for deadlock | 456 // Do not lock this on the VoE media processor thread; potential for deadlock |
455 // exists. | 457 // exists. |
456 mutable rtc::CriticalSection receive_channels_cs_; | 458 mutable rtc::CriticalSection receive_channels_cs_; |
457 }; | 459 }; |
458 | 460 |
459 } // namespace cricket | 461 } // namespace cricket |
460 | 462 |
461 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ | 463 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ |
OLD | NEW |