| OLD | NEW |
| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 const AudioOptions& options, | 145 const AudioOptions& options, |
| 146 webrtc::Call* call); | 146 webrtc::Call* call); |
| 147 ~WebRtcVoiceMediaChannel() override; | 147 ~WebRtcVoiceMediaChannel() override; |
| 148 | 148 |
| 149 const AudioOptions& options() const { return options_; } | 149 const AudioOptions& options() const { return options_; } |
| 150 | 150 |
| 151 rtc::DiffServCodePoint PreferredDscp() const override; | 151 rtc::DiffServCodePoint PreferredDscp() const override; |
| 152 | 152 |
| 153 bool SetSendParameters(const AudioSendParameters& params) override; | 153 bool SetSendParameters(const AudioSendParameters& params) override; |
| 154 bool SetRecvParameters(const AudioRecvParameters& params) override; | 154 bool SetRecvParameters(const AudioRecvParameters& params) override; |
| 155 webrtc::RTCRtpParameters GetRtpParameters(uint32_t ssrc) override; |
| 156 bool SetRtpParameters(uint32_t ssrc, |
| 157 const webrtc::RTCRtpParameters& parameters) override; |
| 155 bool SetPlayout(bool playout) override; | 158 bool SetPlayout(bool playout) override; |
| 156 bool PausePlayout(); | 159 bool PausePlayout(); |
| 157 bool ResumePlayout(); | 160 bool ResumePlayout(); |
| 158 bool SetSend(SendFlags send) override; | 161 bool SetSend(SendFlags send) override; |
| 159 bool PauseSend(); | 162 bool PauseSend(); |
| 160 bool ResumeSend(); | 163 bool ResumeSend(); |
| 161 bool SetAudioSend(uint32_t ssrc, | 164 bool SetAudioSend(uint32_t ssrc, |
| 162 bool enable, | 165 bool enable, |
| 163 const AudioOptions* options, | 166 const AudioOptions* options, |
| 164 AudioRenderer* renderer) override; | 167 AudioRenderer* renderer) override; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 bool ChangePlayout(bool playout); | 230 bool ChangePlayout(bool playout); |
| 228 bool ChangeSend(SendFlags send); | 231 bool ChangeSend(SendFlags send); |
| 229 bool ChangeSend(int channel, SendFlags send); | 232 bool ChangeSend(int channel, SendFlags send); |
| 230 int CreateVoEChannel(); | 233 int CreateVoEChannel(); |
| 231 bool DeleteVoEChannel(int channel); | 234 bool DeleteVoEChannel(int channel); |
| 232 bool IsDefaultRecvStream(uint32_t ssrc) { | 235 bool IsDefaultRecvStream(uint32_t ssrc) { |
| 233 return default_recv_ssrc_ == static_cast<int64_t>(ssrc); | 236 return default_recv_ssrc_ == static_cast<int64_t>(ssrc); |
| 234 } | 237 } |
| 235 bool SetSendCodecs(int channel, const std::vector<AudioCodec>& codecs); | 238 bool SetSendCodecs(int channel, const std::vector<AudioCodec>& codecs); |
| 236 bool SetSendBitrateInternal(int bps); | 239 bool SetSendBitrateInternal(int bps); |
| 240 bool ApplyBitrateLimits(int channel, int global_limit, int local_limit); |
| 237 | 241 |
| 238 rtc::ThreadChecker worker_thread_checker_; | 242 rtc::ThreadChecker worker_thread_checker_; |
| 239 | 243 |
| 240 WebRtcVoiceEngine* const engine_ = nullptr; | 244 WebRtcVoiceEngine* const engine_ = nullptr; |
| 241 std::vector<AudioCodec> recv_codecs_; | 245 std::vector<AudioCodec> recv_codecs_; |
| 242 std::vector<AudioCodec> send_codecs_; | 246 std::vector<AudioCodec> send_codecs_; |
| 243 std::unique_ptr<webrtc::CodecInst> send_codec_; | 247 std::unique_ptr<webrtc::CodecInst> send_codec_; |
| 244 bool send_bitrate_setting_ = false; | 248 bool send_bitrate_setting_ = false; |
| 245 int send_bitrate_bps_ = 0; | 249 int send_bitrate_bps_ = 0; |
| 246 AudioOptions options_; | 250 AudioOptions options_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 270 | 274 |
| 271 class WebRtcAudioReceiveStream; | 275 class WebRtcAudioReceiveStream; |
| 272 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; | 276 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; |
| 273 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 277 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
| 274 | 278 |
| 275 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); | 279 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
| 276 }; | 280 }; |
| 277 } // namespace cricket | 281 } // namespace cricket |
| 278 | 282 |
| 279 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 283 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
| OLD | NEW |