| 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 "webrtc/audio/audio_sink.h" |   14 #include "webrtc/audio/audio_sink.h" | 
|   15 #include "webrtc/base/criticalsection.h" |   15 #include "webrtc/base/criticalsection.h" | 
|   16 #include "webrtc/base/scoped_ptr.h" |   16 #include "webrtc/base/scoped_ptr.h" | 
|   17 #include "webrtc/base/scoped_ref_ptr.h" |  | 
|   18 #include "webrtc/common_audio/resampler/include/push_resampler.h" |   17 #include "webrtc/common_audio/resampler/include/push_resampler.h" | 
|   19 #include "webrtc/common_types.h" |   18 #include "webrtc/common_types.h" | 
|   20 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" |   19 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" | 
|   21 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d
     efines.h" |   20 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d
     efines.h" | 
|   22 #include "webrtc/modules/audio_processing/rms_level.h" |   21 #include "webrtc/modules/audio_processing/rms_level.h" | 
|   23 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" |   22 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" | 
|   24 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |   23 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 
|   25 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |   24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 
|   26 #include "webrtc/modules/utility/include/file_player.h" |   25 #include "webrtc/modules/utility/include/file_player.h" | 
|   27 #include "webrtc/modules/utility/include/file_recorder.h" |   26 #include "webrtc/modules/utility/include/file_recorder.h" | 
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  187     int32_t SetEngineInformation( |  186     int32_t SetEngineInformation( | 
|  188         Statistics& engineStatistics, |  187         Statistics& engineStatistics, | 
|  189         OutputMixer& outputMixer, |  188         OutputMixer& outputMixer, | 
|  190         TransmitMixer& transmitMixer, |  189         TransmitMixer& transmitMixer, | 
|  191         ProcessThread& moduleProcessThread, |  190         ProcessThread& moduleProcessThread, | 
|  192         AudioDeviceModule& audioDeviceModule, |  191         AudioDeviceModule& audioDeviceModule, | 
|  193         VoiceEngineObserver* voiceEngineObserver, |  192         VoiceEngineObserver* voiceEngineObserver, | 
|  194         CriticalSectionWrapper* callbackCritSect); |  193         CriticalSectionWrapper* callbackCritSect); | 
|  195     int32_t UpdateLocalTimeStamp(); |  194     int32_t UpdateLocalTimeStamp(); | 
|  196  |  195  | 
|  197     void SetSink(const rtc::scoped_refptr<AudioSinkInterface>& sink); |  196     void SetSink(rtc::scoped_ptr<AudioSinkInterface> sink); | 
|  198  |  197  | 
|  199     // API methods |  198     // API methods | 
|  200  |  199  | 
|  201     // VoEBase |  200     // VoEBase | 
|  202     int32_t StartPlayout(); |  201     int32_t StartPlayout(); | 
|  203     int32_t StopPlayout(); |  202     int32_t StopPlayout(); | 
|  204     int32_t StartSend(); |  203     int32_t StartSend(); | 
|  205     int32_t StopSend(); |  204     int32_t StopSend(); | 
|  206     int32_t StartReceiving(); |  205     int32_t StartReceiving(); | 
|  207     int32_t StopReceiving(); |  206     int32_t StopReceiving(); | 
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  505     RtcEventLog* const event_log_; |  504     RtcEventLog* const event_log_; | 
|  506  |  505  | 
|  507     rtc::scoped_ptr<RtpHeaderParser> rtp_header_parser_; |  506     rtc::scoped_ptr<RtpHeaderParser> rtp_header_parser_; | 
|  508     rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry_; |  507     rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry_; | 
|  509     rtc::scoped_ptr<ReceiveStatistics> rtp_receive_statistics_; |  508     rtc::scoped_ptr<ReceiveStatistics> rtp_receive_statistics_; | 
|  510     rtc::scoped_ptr<StatisticsProxy> statistics_proxy_; |  509     rtc::scoped_ptr<StatisticsProxy> statistics_proxy_; | 
|  511     rtc::scoped_ptr<RtpReceiver> rtp_receiver_; |  510     rtc::scoped_ptr<RtpReceiver> rtp_receiver_; | 
|  512     TelephoneEventHandler* telephone_event_handler_; |  511     TelephoneEventHandler* telephone_event_handler_; | 
|  513     rtc::scoped_ptr<RtpRtcp> _rtpRtcpModule; |  512     rtc::scoped_ptr<RtpRtcp> _rtpRtcpModule; | 
|  514     rtc::scoped_ptr<AudioCodingModule> audio_coding_; |  513     rtc::scoped_ptr<AudioCodingModule> audio_coding_; | 
|  515     rtc::scoped_refptr<AudioSinkInterface> audio_sink_; |  514     rtc::scoped_ptr<AudioSinkInterface> audio_sink_; | 
|  516     AudioLevel _outputAudioLevel; |  515     AudioLevel _outputAudioLevel; | 
|  517     bool _externalTransport; |  516     bool _externalTransport; | 
|  518     AudioFrame _audioFrame; |  517     AudioFrame _audioFrame; | 
|  519     // Downsamples to the codec rate if necessary. |  518     // Downsamples to the codec rate if necessary. | 
|  520     PushResampler<int16_t> input_resampler_; |  519     PushResampler<int16_t> input_resampler_; | 
|  521     FilePlayer* _inputFilePlayerPtr; |  520     FilePlayer* _inputFilePlayerPtr; | 
|  522     FilePlayer* _outputFilePlayerPtr; |  521     FilePlayer* _outputFilePlayerPtr; | 
|  523     FileRecorder* _outputFileRecorderPtr; |  522     FileRecorder* _outputFileRecorderPtr; | 
|  524     int _inputFilePlayerId; |  523     int _inputFilePlayerId; | 
|  525     int _outputFilePlayerId; |  524     int _outputFilePlayerId; | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  605     PacketRouter* packet_router_ = nullptr; |  604     PacketRouter* packet_router_ = nullptr; | 
|  606     rtc::scoped_ptr<TransportFeedbackProxy> feedback_observer_proxy_; |  605     rtc::scoped_ptr<TransportFeedbackProxy> feedback_observer_proxy_; | 
|  607     rtc::scoped_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; |  606     rtc::scoped_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; | 
|  608     rtc::scoped_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; |  607     rtc::scoped_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; | 
|  609 }; |  608 }; | 
|  610  |  609  | 
|  611 }  // namespace voe |  610 }  // namespace voe | 
|  612 }  // namespace webrtc |  611 }  // namespace webrtc | 
|  613  |  612  | 
|  614 #endif  // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |  613 #endif  // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 
| OLD | NEW |