| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 rtc::ThreadChecker worker_thread_checker_; | 259 rtc::ThreadChecker worker_thread_checker_; |
| 260 | 260 |
| 261 WebRtcVoiceEngine* const engine_ = nullptr; | 261 WebRtcVoiceEngine* const engine_ = nullptr; |
| 262 std::vector<AudioCodec> recv_codecs_; | 262 std::vector<AudioCodec> recv_codecs_; |
| 263 std::vector<AudioCodec> send_codecs_; | 263 std::vector<AudioCodec> send_codecs_; |
| 264 rtc::scoped_ptr<webrtc::CodecInst> send_codec_; | 264 rtc::scoped_ptr<webrtc::CodecInst> send_codec_; |
| 265 bool send_bitrate_setting_ = false; | 265 bool send_bitrate_setting_ = false; |
| 266 int send_bitrate_bps_ = 0; | 266 int send_bitrate_bps_ = 0; |
| 267 AudioOptions options_; | 267 AudioOptions options_; |
| 268 bool dtmf_allowed_ = false; | 268 rtc::Optional<int> dtmf_payload_type_; |
| 269 bool desired_playout_ = false; | 269 bool desired_playout_ = false; |
| 270 bool nack_enabled_ = false; | 270 bool nack_enabled_ = false; |
| 271 bool playout_ = false; | 271 bool playout_ = false; |
| 272 SendFlags desired_send_ = SEND_NOTHING; | 272 SendFlags desired_send_ = SEND_NOTHING; |
| 273 SendFlags send_ = SEND_NOTHING; | 273 SendFlags send_ = SEND_NOTHING; |
| 274 webrtc::Call* const call_ = nullptr; | 274 webrtc::Call* const call_ = nullptr; |
| 275 | 275 |
| 276 // SSRC of unsignalled receive stream, or -1 if there isn't one. | 276 // SSRC of unsignalled receive stream, or -1 if there isn't one. |
| 277 int64_t default_recv_ssrc_ = -1; | 277 int64_t default_recv_ssrc_ = -1; |
| 278 // Volume for unsignalled stream, which may be set before the stream exists. | 278 // Volume for unsignalled stream, which may be set before the stream exists. |
| 279 double default_recv_volume_ = 1.0; | 279 double default_recv_volume_ = 1.0; |
| 280 // Default SSRC to use for RTCP receiver reports in case of no signaled | 280 // Default SSRC to use for RTCP receiver reports in case of no signaled |
| 281 // send streams. See: https://code.google.com/p/webrtc/issues/detail?id=4740 | 281 // send streams. See: https://code.google.com/p/webrtc/issues/detail?id=4740 |
| 282 // and https://code.google.com/p/chromium/issues/detail?id=547661 | 282 // and https://code.google.com/p/chromium/issues/detail?id=547661 |
| 283 uint32_t receiver_reports_ssrc_ = 0xFA17FA17u; | 283 uint32_t receiver_reports_ssrc_ = 0xFA17FA17u; |
| 284 | 284 |
| 285 class WebRtcAudioSendStream; | 285 class WebRtcAudioSendStream; |
| 286 std::map<uint32_t, WebRtcAudioSendStream*> send_streams_; | 286 std::map<uint32_t, WebRtcAudioSendStream*> send_streams_; |
| 287 std::vector<webrtc::RtpExtension> send_rtp_extensions_; | 287 std::vector<webrtc::RtpExtension> send_rtp_extensions_; |
| 288 | 288 |
| 289 class WebRtcAudioReceiveStream; | 289 class WebRtcAudioReceiveStream; |
| 290 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; | 290 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; |
| 291 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 291 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
| 292 | 292 |
| 293 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); | 293 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
| 294 }; | 294 }; |
| 295 } // namespace cricket | 295 } // namespace cricket |
| 296 | 296 |
| 297 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ | 297 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ |
| OLD | NEW |