Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: webrtc/voice_engine/channel.cc

Issue 2721003002: Remove usage of VoEVolumeControl from WVoE and Audio[Send|Receive]Stream. (Closed)
Patch Set: rebase+comment Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/voice_engine/channel.h ('k') | webrtc/voice_engine/channel_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
3067 int64_t min_rtt = 0; 3063 int64_t min_rtt = 0;
3068 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3064 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3069 0) { 3065 0) {
3070 return 0; 3066 return 0;
3071 } 3067 }
3072 return rtt; 3068 return rtt;
3073 } 3069 }
3074 3070
3075 } // namespace voe 3071 } // namespace voe
3076 } // namespace webrtc 3072 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel.h ('k') | webrtc/voice_engine/channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698