OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
12 #define WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 12 #define WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
16 #include "webrtc/audio_sink.h" | 16 #include "webrtc/audio_sink.h" |
17 #include "webrtc/base/criticalsection.h" | 17 #include "webrtc/base/criticalsection.h" |
18 #include "webrtc/common_audio/resampler/include/push_resampler.h" | 18 #include "webrtc/common_audio/resampler/include/push_resampler.h" |
19 #include "webrtc/common_types.h" | 19 #include "webrtc/common_types.h" |
| 20 #include "webrtc/modules/audio_coding/acm2/codec_manager.h" |
| 21 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h" |
20 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" | 22 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" |
21 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d
efines.h" | 23 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d
efines.h" |
22 #include "webrtc/modules/audio_processing/rms_level.h" | 24 #include "webrtc/modules/audio_processing/rms_level.h" |
23 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" | 25 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" |
24 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 26 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
25 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 27 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
26 #include "webrtc/modules/utility/include/file_player.h" | 28 #include "webrtc/modules/utility/include/file_player.h" |
27 #include "webrtc/modules/utility/include/file_recorder.h" | 29 #include "webrtc/modules/utility/include/file_recorder.h" |
28 #include "webrtc/voice_engine/include/voe_audio_processing.h" | 30 #include "webrtc/voice_engine/include/voe_audio_processing.h" |
29 #include "webrtc/voice_engine/include/voe_network.h" | 31 #include "webrtc/voice_engine/include/voe_network.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 RtcEventLog* const event_log_; | 475 RtcEventLog* const event_log_; |
474 | 476 |
475 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; | 477 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; |
476 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry_; | 478 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry_; |
477 std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; | 479 std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; |
478 std::unique_ptr<StatisticsProxy> statistics_proxy_; | 480 std::unique_ptr<StatisticsProxy> statistics_proxy_; |
479 std::unique_ptr<RtpReceiver> rtp_receiver_; | 481 std::unique_ptr<RtpReceiver> rtp_receiver_; |
480 TelephoneEventHandler* telephone_event_handler_; | 482 TelephoneEventHandler* telephone_event_handler_; |
481 std::unique_ptr<RtpRtcp> _rtpRtcpModule; | 483 std::unique_ptr<RtpRtcp> _rtpRtcpModule; |
482 std::unique_ptr<AudioCodingModule> audio_coding_; | 484 std::unique_ptr<AudioCodingModule> audio_coding_; |
| 485 acm2::CodecManager codec_manager_; |
| 486 acm2::RentACodec rent_a_codec_; |
483 std::unique_ptr<AudioSinkInterface> audio_sink_; | 487 std::unique_ptr<AudioSinkInterface> audio_sink_; |
484 AudioLevel _outputAudioLevel; | 488 AudioLevel _outputAudioLevel; |
485 bool _externalTransport; | 489 bool _externalTransport; |
486 AudioFrame _audioFrame; | 490 AudioFrame _audioFrame; |
487 // Downsamples to the codec rate if necessary. | 491 // Downsamples to the codec rate if necessary. |
488 PushResampler<int16_t> input_resampler_; | 492 PushResampler<int16_t> input_resampler_; |
489 FilePlayer* _inputFilePlayerPtr; | 493 FilePlayer* _inputFilePlayerPtr; |
490 FilePlayer* _outputFilePlayerPtr; | 494 FilePlayer* _outputFilePlayerPtr; |
491 FileRecorder* _outputFileRecorderPtr; | 495 FileRecorder* _outputFileRecorderPtr; |
492 int _inputFilePlayerId; | 496 int _inputFilePlayerId; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 PacketRouter* packet_router_ = nullptr; | 572 PacketRouter* packet_router_ = nullptr; |
569 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; | 573 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; |
570 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; | 574 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; |
571 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; | 575 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; |
572 }; | 576 }; |
573 | 577 |
574 } // namespace voe | 578 } // namespace voe |
575 } // namespace webrtc | 579 } // namespace webrtc |
576 | 580 |
577 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 581 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
OLD | NEW |