| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 237 } |
| 238 | 238 |
| 239 int GetReceiveChannelId(uint32_t ssrc) const; | 239 int GetReceiveChannelId(uint32_t ssrc) const; |
| 240 int GetSendChannelId(uint32_t ssrc) const; | 240 int GetSendChannelId(uint32_t ssrc) const; |
| 241 | 241 |
| 242 private: | 242 private: |
| 243 bool SetOptions(const AudioOptions& options); | 243 bool SetOptions(const AudioOptions& options); |
| 244 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs); | 244 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs); |
| 245 bool SetSendCodecs(const std::vector<AudioCodec>& codecs); | 245 bool SetSendCodecs(const std::vector<AudioCodec>& codecs); |
| 246 bool SetSendCodecs(int channel, const webrtc::RtpParameters& rtp_parameters); | 246 bool SetSendCodecs(int channel, const webrtc::RtpParameters& rtp_parameters); |
| 247 void SetNack(int channel, bool nack_enabled); | |
| 248 bool SetSendCodec(int channel, const webrtc::CodecInst& send_codec); | 247 bool SetSendCodec(int channel, const webrtc::CodecInst& send_codec); |
| 249 bool SetLocalSource(uint32_t ssrc, AudioSource* source); | 248 bool SetLocalSource(uint32_t ssrc, AudioSource* source); |
| 250 bool MuteStream(uint32_t ssrc, bool mute); | 249 bool MuteStream(uint32_t ssrc, bool mute); |
| 251 | 250 |
| 252 WebRtcVoiceEngine* engine() { return engine_; } | 251 WebRtcVoiceEngine* engine() { return engine_; } |
| 253 int GetLastEngineError() { return engine()->GetLastEngineError(); } | 252 int GetLastEngineError() { return engine()->GetLastEngineError(); } |
| 254 int GetOutputLevel(int channel); | 253 int GetOutputLevel(int channel); |
| 255 bool SetPlayout(int channel, bool playout); | 254 bool SetPlayout(int channel, bool playout); |
| 256 bool ChangePlayout(bool playout); | 255 bool ChangePlayout(bool playout); |
| 257 int CreateVoEChannel(); | 256 int CreateVoEChannel(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 272 rtc::ThreadChecker worker_thread_checker_; | 271 rtc::ThreadChecker worker_thread_checker_; |
| 273 | 272 |
| 274 WebRtcVoiceEngine* const engine_ = nullptr; | 273 WebRtcVoiceEngine* const engine_ = nullptr; |
| 275 std::vector<AudioCodec> send_codecs_; | 274 std::vector<AudioCodec> send_codecs_; |
| 276 std::vector<AudioCodec> recv_codecs_; | 275 std::vector<AudioCodec> recv_codecs_; |
| 277 int max_send_bitrate_bps_ = 0; | 276 int max_send_bitrate_bps_ = 0; |
| 278 AudioOptions options_; | 277 AudioOptions options_; |
| 279 rtc::Optional<int> dtmf_payload_type_; | 278 rtc::Optional<int> dtmf_payload_type_; |
| 280 bool desired_playout_ = false; | 279 bool desired_playout_ = false; |
| 281 bool recv_transport_cc_enabled_ = false; | 280 bool recv_transport_cc_enabled_ = false; |
| 281 bool recv_nack_enabled_ = false; |
| 282 bool playout_ = false; | 282 bool playout_ = false; |
| 283 bool send_ = false; | 283 bool send_ = false; |
| 284 webrtc::Call* const call_ = nullptr; | 284 webrtc::Call* const call_ = nullptr; |
| 285 | 285 |
| 286 // SSRC of unsignalled receive stream, or -1 if there isn't one. | 286 // SSRC of unsignalled receive stream, or -1 if there isn't one. |
| 287 int64_t default_recv_ssrc_ = -1; | 287 int64_t default_recv_ssrc_ = -1; |
| 288 // Volume for unsignalled stream, which may be set before the stream exists. | 288 // Volume for unsignalled stream, which may be set before the stream exists. |
| 289 double default_recv_volume_ = 1.0; | 289 double default_recv_volume_ = 1.0; |
| 290 // Sink for unsignalled stream, which may be set before the stream exists. | 290 // Sink for unsignalled stream, which may be set before the stream exists. |
| 291 std::unique_ptr<webrtc::AudioSinkInterface> default_sink_; | 291 std::unique_ptr<webrtc::AudioSinkInterface> default_sink_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 302 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; | 302 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; |
| 303 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 303 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
| 304 | 304 |
| 305 SendCodecSpec send_codec_spec_; | 305 SendCodecSpec send_codec_spec_; |
| 306 | 306 |
| 307 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); | 307 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
| 308 }; | 308 }; |
| 309 } // namespace cricket | 309 } // namespace cricket |
| 310 | 310 |
| 311 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 311 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
| OLD | NEW |