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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 bool ValidateRtpParameters(const webrtc::RtpParameters& parameters); | 244 bool ValidateRtpParameters(const webrtc::RtpParameters& parameters); |
245 void SetupRecording(); | 245 void SetupRecording(); |
246 // Check if 'ssrc' is an unsignaled stream, and if so mark it as not being | 246 // Check if 'ssrc' is an unsignaled stream, and if so mark it as not being |
247 // unsignaled anymore (i.e. it is now removed, or signaled), and return true. | 247 // unsignaled anymore (i.e. it is now removed, or signaled), and return true. |
248 bool MaybeDeregisterUnsignaledRecvStream(uint32_t ssrc); | 248 bool MaybeDeregisterUnsignaledRecvStream(uint32_t ssrc); |
249 | 249 |
250 rtc::ThreadChecker worker_thread_checker_; | 250 rtc::ThreadChecker worker_thread_checker_; |
251 | 251 |
252 WebRtcVoiceEngine* const engine_ = nullptr; | 252 WebRtcVoiceEngine* const engine_ = nullptr; |
253 std::vector<AudioCodec> send_codecs_; | 253 std::vector<AudioCodec> send_codecs_; |
254 | |
255 // TODO(kwiberg): decoder_map_ and recv_codecs_ store the exact same | |
256 // information, in slightly different formats. Eliminate recv_codecs_. | |
257 std::map<int, webrtc::SdpAudioFormat> decoder_map_; | |
258 std::vector<AudioCodec> recv_codecs_; | 254 std::vector<AudioCodec> recv_codecs_; |
259 | |
260 int max_send_bitrate_bps_ = 0; | 255 int max_send_bitrate_bps_ = 0; |
261 AudioOptions options_; | 256 AudioOptions options_; |
262 rtc::Optional<int> dtmf_payload_type_; | 257 rtc::Optional<int> dtmf_payload_type_; |
263 int dtmf_payload_freq_ = -1; | 258 int dtmf_payload_freq_ = -1; |
264 bool recv_transport_cc_enabled_ = false; | 259 bool recv_transport_cc_enabled_ = false; |
265 bool recv_nack_enabled_ = false; | 260 bool recv_nack_enabled_ = false; |
266 bool desired_playout_ = false; | 261 bool desired_playout_ = false; |
267 bool playout_ = false; | 262 bool playout_ = false; |
268 bool send_ = false; | 263 bool send_ = false; |
269 webrtc::Call* const call_ = nullptr; | 264 webrtc::Call* const call_ = nullptr; |
(...skipping 19 matching lines...) Expand all Loading... |
289 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; | 284 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; |
290 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 285 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
291 | 286 |
292 webrtc::AudioSendStream::Config::SendCodecSpec send_codec_spec_; | 287 webrtc::AudioSendStream::Config::SendCodecSpec send_codec_spec_; |
293 | 288 |
294 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); | 289 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
295 }; | 290 }; |
296 } // namespace cricket | 291 } // namespace cricket |
297 | 292 |
298 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 293 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
OLD | NEW |