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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" | 32 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" |
33 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" | 33 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" |
34 #include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h" | 34 #include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h" |
35 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" | 35 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
36 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h" | 36 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h" |
37 #include "webrtc/modules/utility/include/process_thread.h" | 37 #include "webrtc/modules/utility/include/process_thread.h" |
38 #include "webrtc/system_wrappers/include/trace.h" | 38 #include "webrtc/system_wrappers/include/trace.h" |
39 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 39 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
40 #include "webrtc/voice_engine/output_mixer.h" | 40 #include "webrtc/voice_engine/output_mixer.h" |
41 #include "webrtc/voice_engine/statistics.h" | 41 #include "webrtc/voice_engine/statistics.h" |
42 #include "webrtc/voice_engine/transmit_mixer.h" | |
43 #include "webrtc/voice_engine/utility.h" | 42 #include "webrtc/voice_engine/utility.h" |
44 | 43 |
45 namespace webrtc { | 44 namespace webrtc { |
46 namespace voe { | 45 namespace voe { |
47 | 46 |
48 namespace { | 47 namespace { |
49 | 48 |
50 constexpr int64_t kMaxRetransmissionWindowMs = 1000; | 49 constexpr int64_t kMaxRetransmissionWindowMs = 1000; |
51 constexpr int64_t kMinRetransmissionWindowMs = 30; | 50 constexpr int64_t kMinRetransmissionWindowMs = 30; |
52 | 51 |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 // random offset | 900 // random offset |
902 ntp_estimator_(Clock::GetRealTimeClock()), | 901 ntp_estimator_(Clock::GetRealTimeClock()), |
903 playout_timestamp_rtp_(0), | 902 playout_timestamp_rtp_(0), |
904 playout_delay_ms_(0), | 903 playout_delay_ms_(0), |
905 send_sequence_number_(0), | 904 send_sequence_number_(0), |
906 rtp_ts_wraparound_handler_(new rtc::TimestampWrapAroundHandler()), | 905 rtp_ts_wraparound_handler_(new rtc::TimestampWrapAroundHandler()), |
907 capture_start_rtp_time_stamp_(-1), | 906 capture_start_rtp_time_stamp_(-1), |
908 capture_start_ntp_time_ms_(-1), | 907 capture_start_ntp_time_ms_(-1), |
909 _engineStatisticsPtr(NULL), | 908 _engineStatisticsPtr(NULL), |
910 _outputMixerPtr(NULL), | 909 _outputMixerPtr(NULL), |
911 _transmitMixerPtr(NULL), | |
912 _moduleProcessThreadPtr(NULL), | 910 _moduleProcessThreadPtr(NULL), |
913 _audioDeviceModulePtr(NULL), | 911 _audioDeviceModulePtr(NULL), |
914 _voiceEngineObserverPtr(NULL), | 912 _voiceEngineObserverPtr(NULL), |
915 _callbackCritSectPtr(NULL), | 913 _callbackCritSectPtr(NULL), |
916 _transportPtr(NULL), | 914 _transportPtr(NULL), |
917 _sendFrameType(0), | 915 _sendFrameType(0), |
918 _mixFileWithMicrophone(false), | 916 _mixFileWithMicrophone(false), |
919 input_mute_(false), | 917 input_mute_(false), |
920 previous_frame_muted_(false), | 918 previous_frame_muted_(false), |
921 _panLeft(1.0f), | 919 _panLeft(1.0f), |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 codec.pltype, codec.plfreq); | 1110 codec.pltype, codec.plfreq); |
1113 } | 1111 } |
1114 } | 1112 } |
1115 } | 1113 } |
1116 | 1114 |
1117 return 0; | 1115 return 0; |
1118 } | 1116 } |
1119 | 1117 |
1120 int32_t Channel::SetEngineInformation(Statistics& engineStatistics, | 1118 int32_t Channel::SetEngineInformation(Statistics& engineStatistics, |
1121 OutputMixer& outputMixer, | 1119 OutputMixer& outputMixer, |
1122 voe::TransmitMixer& transmitMixer, | |
1123 ProcessThread& moduleProcessThread, | 1120 ProcessThread& moduleProcessThread, |
1124 AudioDeviceModule& audioDeviceModule, | 1121 AudioDeviceModule& audioDeviceModule, |
1125 VoiceEngineObserver* voiceEngineObserver, | 1122 VoiceEngineObserver* voiceEngineObserver, |
1126 rtc::CriticalSection* callbackCritSect) { | 1123 rtc::CriticalSection* callbackCritSect) { |
1127 WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), | 1124 WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), |
1128 "Channel::SetEngineInformation()"); | 1125 "Channel::SetEngineInformation()"); |
1129 _engineStatisticsPtr = &engineStatistics; | 1126 _engineStatisticsPtr = &engineStatistics; |
1130 _outputMixerPtr = &outputMixer; | 1127 _outputMixerPtr = &outputMixer; |
1131 _transmitMixerPtr = &transmitMixer, | |
1132 _moduleProcessThreadPtr = &moduleProcessThread; | 1128 _moduleProcessThreadPtr = &moduleProcessThread; |
1133 _audioDeviceModulePtr = &audioDeviceModule; | 1129 _audioDeviceModulePtr = &audioDeviceModule; |
1134 _voiceEngineObserverPtr = voiceEngineObserver; | 1130 _voiceEngineObserverPtr = voiceEngineObserver; |
1135 _callbackCritSectPtr = callbackCritSect; | 1131 _callbackCritSectPtr = callbackCritSect; |
1136 return 0; | 1132 return 0; |
1137 } | 1133 } |
1138 | 1134 |
1139 int32_t Channel::UpdateLocalTimeStamp() { | 1135 int32_t Channel::UpdateLocalTimeStamp() { |
1140 _timeStamp += static_cast<uint32_t>(_audioFrame.samples_per_channel_); | 1136 _timeStamp += static_cast<uint32_t>(_audioFrame.samples_per_channel_); |
1141 return 0; | 1137 return 0; |
(...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3076 int64_t min_rtt = 0; | 3072 int64_t min_rtt = 0; |
3077 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3073 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
3078 0) { | 3074 0) { |
3079 return 0; | 3075 return 0; |
3080 } | 3076 } |
3081 return rtt; | 3077 return rtt; |
3082 } | 3078 } |
3083 | 3079 |
3084 } // namespace voe | 3080 } // namespace voe |
3085 } // namespace webrtc | 3081 } // namespace webrtc |
OLD | NEW |