niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
leozwang@webrtc.org | 813e4b0 | 2012-03-01 18:34:25 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
andrew@webrtc.org | 382c0c2 | 2014-05-05 18:22:21 +0000 | [diff] [blame] | 11 | #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
| 12 | #define WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 14 | #include <memory> |
| 15 | |
kjellander@webrtc.org | 7ffeab5 | 2016-02-26 22:46:09 +0100 | [diff] [blame] | 16 | #include "webrtc/audio_sink.h" |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 17 | #include "webrtc/base/criticalsection.h" |
xians@webrtc.org | 2f84afa | 2013-07-31 16:23:37 +0000 | [diff] [blame] | 18 | #include "webrtc/common_audio/resampler/include/push_resampler.h" |
turaj@webrtc.org | 6388c3e | 2013-02-12 21:42:18 +0000 | [diff] [blame] | 19 | #include "webrtc/common_types.h" |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 20 | #include "webrtc/modules/audio_coding/include/audio_coding_module.h" |
Henrik Kjellander | ff761fb | 2015-11-04 08:31:52 +0100 | [diff] [blame] | 21 | #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_defines.h" |
andrew@webrtc.org | 382c0c2 | 2014-05-05 18:22:21 +0000 | [diff] [blame] | 22 | #include "webrtc/modules/audio_processing/rms_level.h" |
Henrik Kjellander | ff761fb | 2015-11-04 08:31:52 +0100 | [diff] [blame] | 23 | #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" |
| 24 | #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
| 25 | #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
| 26 | #include "webrtc/modules/utility/include/file_player.h" |
| 27 | #include "webrtc/modules/utility/include/file_recorder.h" |
turaj@webrtc.org | 6388c3e | 2013-02-12 21:42:18 +0000 | [diff] [blame] | 28 | #include "webrtc/voice_engine/include/voe_audio_processing.h" |
| 29 | #include "webrtc/voice_engine/include/voe_network.h" |
| 30 | #include "webrtc/voice_engine/level_indicator.h" |
minyue@webrtc.org | 74aaf29 | 2014-07-16 21:28:26 +0000 | [diff] [blame] | 31 | #include "webrtc/voice_engine/network_predictor.h" |
turaj@webrtc.org | 6388c3e | 2013-02-12 21:42:18 +0000 | [diff] [blame] | 32 | #include "webrtc/voice_engine/shared_data.h" |
| 33 | #include "webrtc/voice_engine/voice_engine_defines.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 34 | |
wu@webrtc.org | 94454b7 | 2014-06-05 20:34:08 +0000 | [diff] [blame] | 35 | namespace rtc { |
| 36 | |
| 37 | class TimestampWrapAroundHandler; |
| 38 | } |
| 39 | |
andrew@webrtc.org | eb524d9 | 2013-09-23 23:02:24 +0000 | [diff] [blame] | 40 | namespace webrtc { |
| 41 | |
tnakamura@webrtc.org | aa4d96a | 2013-07-16 19:25:04 +0000 | [diff] [blame] | 42 | class AudioDeviceModule; |
minyue@webrtc.org | e509f94 | 2013-09-12 17:03:00 +0000 | [diff] [blame] | 43 | class Config; |
tnakamura@webrtc.org | aa4d96a | 2013-07-16 19:25:04 +0000 | [diff] [blame] | 44 | class FileWrapper; |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 45 | class PacketRouter; |
wu@webrtc.org | 822fbd8 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 46 | class ProcessThread; |
| 47 | class ReceiveStatistics; |
wu@webrtc.org | 82c4b85 | 2014-05-20 22:55:01 +0000 | [diff] [blame] | 48 | class RemoteNtpTimeEstimator; |
ivoc | b04965c | 2015-09-09 00:09:43 -0700 | [diff] [blame] | 49 | class RtcEventLog; |
wu@webrtc.org | 822fbd8 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 50 | class RTPPayloadRegistry; |
| 51 | class RtpReceiver; |
| 52 | class RTPReceiverAudio; |
| 53 | class RtpRtcp; |
| 54 | class TelephoneEventHandler; |
tnakamura@webrtc.org | aa4d96a | 2013-07-16 19:25:04 +0000 | [diff] [blame] | 55 | class VoEMediaProcess; |
wu@webrtc.org | 822fbd8 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 56 | class VoERTPObserver; |
| 57 | class VoiceEngineObserver; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 58 | |
| 59 | struct CallStatistics; |
henrika@webrtc.org | 8a2fc88 | 2012-08-22 08:53:55 +0000 | [diff] [blame] | 60 | struct ReportBlock; |
| 61 | struct SenderInfo; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 62 | |
andrew@webrtc.org | eb524d9 | 2013-09-23 23:02:24 +0000 | [diff] [blame] | 63 | namespace voe { |
| 64 | |
mflodman@webrtc.org | 0a7d4ee | 2015-02-17 12:57:14 +0000 | [diff] [blame] | 65 | class OutputMixer; |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 66 | class RtpPacketSenderProxy; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 67 | class Statistics; |
sprang@webrtc.org | 54ae4ff | 2013-12-19 13:26:02 +0000 | [diff] [blame] | 68 | class StatisticsProxy; |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 69 | class TransportFeedbackProxy; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 70 | class TransmitMixer; |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 71 | class TransportSequenceNumberProxy; |
mflodman@webrtc.org | 0a7d4ee | 2015-02-17 12:57:14 +0000 | [diff] [blame] | 72 | class VoERtcpObserver; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 73 | |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 74 | // Helper class to simplify locking scheme for members that are accessed from |
| 75 | // multiple threads. |
| 76 | // Example: a member can be set on thread T1 and read by an internal audio |
| 77 | // thread T2. Accessing the member via this class ensures that we are |
| 78 | // safe and also avoid TSan v2 warnings. |
| 79 | class ChannelState { |
| 80 | public: |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 81 | struct State { |
| 82 | State() |
| 83 | : rx_apm_is_enabled(false), |
| 84 | input_external_media(false), |
| 85 | output_file_playing(false), |
| 86 | input_file_playing(false), |
| 87 | playing(false), |
| 88 | sending(false), |
| 89 | receiving(false) {} |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 90 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 91 | bool rx_apm_is_enabled; |
| 92 | bool input_external_media; |
| 93 | bool output_file_playing; |
| 94 | bool input_file_playing; |
| 95 | bool playing; |
| 96 | bool sending; |
| 97 | bool receiving; |
| 98 | }; |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 99 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 100 | ChannelState() {} |
| 101 | virtual ~ChannelState() {} |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 102 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 103 | void Reset() { |
| 104 | rtc::CritScope lock(&lock_); |
| 105 | state_ = State(); |
| 106 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 107 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 108 | State Get() const { |
| 109 | rtc::CritScope lock(&lock_); |
| 110 | return state_; |
| 111 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 112 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 113 | void SetRxApmIsEnabled(bool enable) { |
| 114 | rtc::CritScope lock(&lock_); |
| 115 | state_.rx_apm_is_enabled = enable; |
| 116 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 117 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 118 | void SetInputExternalMedia(bool enable) { |
| 119 | rtc::CritScope lock(&lock_); |
| 120 | state_.input_external_media = enable; |
| 121 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 122 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 123 | void SetOutputFilePlaying(bool enable) { |
| 124 | rtc::CritScope lock(&lock_); |
| 125 | state_.output_file_playing = enable; |
| 126 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 127 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 128 | void SetInputFilePlaying(bool enable) { |
| 129 | rtc::CritScope lock(&lock_); |
| 130 | state_.input_file_playing = enable; |
| 131 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 132 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 133 | void SetPlaying(bool enable) { |
| 134 | rtc::CritScope lock(&lock_); |
| 135 | state_.playing = enable; |
| 136 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 137 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 138 | void SetSending(bool enable) { |
| 139 | rtc::CritScope lock(&lock_); |
| 140 | state_.sending = enable; |
| 141 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 142 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 143 | void SetReceiving(bool enable) { |
| 144 | rtc::CritScope lock(&lock_); |
| 145 | state_.receiving = enable; |
| 146 | } |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 147 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 148 | private: |
pbos | d8de115 | 2016-02-01 09:00:51 -0800 | [diff] [blame] | 149 | rtc::CriticalSection lock_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 150 | State state_; |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 151 | }; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 152 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 153 | class Channel |
| 154 | : public RtpData, |
| 155 | public RtpFeedback, |
| 156 | public FileCallback, // receiving notification from file player & |
| 157 | // recorder |
| 158 | public Transport, |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 159 | public AudioPacketizationCallback, // receive encoded packets from the |
| 160 | // ACM |
| 161 | public ACMVADCallback, // receive voice activity from the ACM |
| 162 | public MixerParticipant // supplies output mixer with audio frames |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 163 | { |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 164 | public: |
| 165 | friend class VoERtcpObserver; |
mflodman@webrtc.org | 0a7d4ee | 2015-02-17 12:57:14 +0000 | [diff] [blame] | 166 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 167 | enum { KNumSocketThreads = 1 }; |
| 168 | enum { KNumberOfSocketBuffers = 8 }; |
| 169 | virtual ~Channel(); |
| 170 | static int32_t CreateChannel(Channel*& channel, |
| 171 | int32_t channelId, |
| 172 | uint32_t instanceId, |
| 173 | RtcEventLog* const event_log, |
| 174 | const Config& config); |
| 175 | Channel(int32_t channelId, |
| 176 | uint32_t instanceId, |
| 177 | RtcEventLog* const event_log, |
| 178 | const Config& config); |
| 179 | int32_t Init(); |
| 180 | int32_t SetEngineInformation(Statistics& engineStatistics, |
| 181 | OutputMixer& outputMixer, |
| 182 | TransmitMixer& transmitMixer, |
| 183 | ProcessThread& moduleProcessThread, |
| 184 | AudioDeviceModule& audioDeviceModule, |
| 185 | VoiceEngineObserver* voiceEngineObserver, |
| 186 | rtc::CriticalSection* callbackCritSect); |
| 187 | int32_t UpdateLocalTimeStamp(); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 188 | |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 189 | void SetSink(std::unique_ptr<AudioSinkInterface> sink); |
Tommi | f888bb5 | 2015-12-12 01:37:01 +0100 | [diff] [blame] | 190 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 191 | // API methods |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 192 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 193 | // VoEBase |
| 194 | int32_t StartPlayout(); |
| 195 | int32_t StopPlayout(); |
| 196 | int32_t StartSend(); |
| 197 | int32_t StopSend(); |
| 198 | int32_t StartReceiving(); |
| 199 | int32_t StopReceiving(); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 200 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 201 | int32_t RegisterVoiceEngineObserver(VoiceEngineObserver& observer); |
| 202 | int32_t DeRegisterVoiceEngineObserver(); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 203 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 204 | // VoECodec |
| 205 | int32_t GetSendCodec(CodecInst& codec); |
| 206 | int32_t GetRecCodec(CodecInst& codec); |
| 207 | int32_t SetSendCodec(const CodecInst& codec); |
| 208 | void SetBitRate(int bitrate_bps); |
| 209 | int32_t SetVADStatus(bool enableVAD, ACMVADMode mode, bool disableDTX); |
| 210 | int32_t GetVADStatus(bool& enabledVAD, ACMVADMode& mode, bool& disabledDTX); |
| 211 | int32_t SetRecPayloadType(const CodecInst& codec); |
| 212 | int32_t GetRecPayloadType(CodecInst& codec); |
| 213 | int32_t SetSendCNPayloadType(int type, PayloadFrequencies frequency); |
| 214 | int SetOpusMaxPlaybackRate(int frequency_hz); |
| 215 | int SetOpusDtx(bool enable_dtx); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 216 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 217 | // VoENetwork |
| 218 | int32_t RegisterExternalTransport(Transport& transport); |
| 219 | int32_t DeRegisterExternalTransport(); |
| 220 | int32_t ReceivedRTPPacket(const int8_t* data, |
| 221 | size_t length, |
| 222 | const PacketTime& packet_time); |
| 223 | int32_t ReceivedRTCPPacket(const int8_t* data, size_t length); |
pwestin@webrtc.org | 684f057 | 2013-03-13 23:20:57 +0000 | [diff] [blame] | 224 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 225 | // VoEFile |
| 226 | int StartPlayingFileLocally(const char* fileName, |
| 227 | bool loop, |
| 228 | FileFormats format, |
| 229 | int startPosition, |
| 230 | float volumeScaling, |
| 231 | int stopPosition, |
| 232 | const CodecInst* codecInst); |
| 233 | int StartPlayingFileLocally(InStream* stream, |
| 234 | FileFormats format, |
| 235 | int startPosition, |
| 236 | float volumeScaling, |
| 237 | int stopPosition, |
| 238 | const CodecInst* codecInst); |
| 239 | int StopPlayingFileLocally(); |
| 240 | int IsPlayingFileLocally() const; |
| 241 | int RegisterFilePlayingToMixer(); |
| 242 | int StartPlayingFileAsMicrophone(const char* fileName, |
| 243 | bool loop, |
| 244 | FileFormats format, |
| 245 | int startPosition, |
| 246 | float volumeScaling, |
| 247 | int stopPosition, |
| 248 | const CodecInst* codecInst); |
| 249 | int StartPlayingFileAsMicrophone(InStream* stream, |
| 250 | FileFormats format, |
| 251 | int startPosition, |
| 252 | float volumeScaling, |
| 253 | int stopPosition, |
| 254 | const CodecInst* codecInst); |
| 255 | int StopPlayingFileAsMicrophone(); |
| 256 | int IsPlayingFileAsMicrophone() const; |
| 257 | int StartRecordingPlayout(const char* fileName, const CodecInst* codecInst); |
| 258 | int StartRecordingPlayout(OutStream* stream, const CodecInst* codecInst); |
| 259 | int StopRecordingPlayout(); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 260 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 261 | void SetMixWithMicStatus(bool mix); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 262 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 263 | // VoEExternalMediaProcessing |
| 264 | int RegisterExternalMediaProcessing(ProcessingTypes type, |
| 265 | VoEMediaProcess& processObject); |
| 266 | int DeRegisterExternalMediaProcessing(ProcessingTypes type); |
| 267 | int SetExternalMixing(bool enabled); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 268 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 269 | // VoEVolumeControl |
| 270 | int GetSpeechOutputLevel(uint32_t& level) const; |
| 271 | int GetSpeechOutputLevelFullRange(uint32_t& level) const; |
solenberg | 1c2af8e | 2016-03-24 10:36:00 -0700 | [diff] [blame] | 272 | int SetInputMute(bool enable); |
| 273 | bool InputMute() const; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 274 | int SetOutputVolumePan(float left, float right); |
| 275 | int GetOutputVolumePan(float& left, float& right) const; |
| 276 | int SetChannelOutputVolumeScaling(float scaling); |
| 277 | int GetChannelOutputVolumeScaling(float& scaling) const; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 278 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 279 | // VoENetEqStats |
| 280 | int GetNetworkStatistics(NetworkStatistics& stats); |
| 281 | void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 282 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 283 | // VoEVideoSync |
| 284 | bool GetDelayEstimate(int* jitter_buffer_delay_ms, |
| 285 | int* playout_buffer_delay_ms) const; |
| 286 | uint32_t GetDelayEstimate() const; |
| 287 | int LeastRequiredDelayMs() const; |
| 288 | int SetMinimumPlayoutDelay(int delayMs); |
| 289 | int GetPlayoutTimestamp(unsigned int& timestamp); |
| 290 | int SetInitTimestamp(unsigned int timestamp); |
| 291 | int SetInitSequenceNumber(short sequenceNumber); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 292 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 293 | // VoEVideoSyncExtended |
| 294 | int GetRtpRtcp(RtpRtcp** rtpRtcpModule, RtpReceiver** rtp_receiver) const; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 295 | |
solenberg | 31642aa | 2016-03-14 08:00:37 -0700 | [diff] [blame] | 296 | // DTMF |
solenberg | 8842c3e | 2016-03-11 03:06:41 -0800 | [diff] [blame] | 297 | int SendTelephoneEventOutband(int event, int duration_ms); |
solenberg | 31642aa | 2016-03-14 08:00:37 -0700 | [diff] [blame] | 298 | int SetSendTelephoneEventPayloadType(int payload_type); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 299 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 300 | // VoEAudioProcessingImpl |
| 301 | int UpdateRxVadDetection(AudioFrame& audioFrame); |
| 302 | int RegisterRxVadObserver(VoERxVadCallback& observer); |
| 303 | int DeRegisterRxVadObserver(); |
| 304 | int VoiceActivityIndicator(int& activity); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 305 | #ifdef WEBRTC_VOICE_ENGINE_AGC |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 306 | int SetRxAgcStatus(bool enable, AgcModes mode); |
| 307 | int GetRxAgcStatus(bool& enabled, AgcModes& mode); |
| 308 | int SetRxAgcConfig(AgcConfig config); |
| 309 | int GetRxAgcConfig(AgcConfig& config); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 310 | #endif |
| 311 | #ifdef WEBRTC_VOICE_ENGINE_NR |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 312 | int SetRxNsStatus(bool enable, NsModes mode); |
| 313 | int GetRxNsStatus(bool& enabled, NsModes& mode); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 314 | #endif |
| 315 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 316 | // VoERTP_RTCP |
| 317 | int SetLocalSSRC(unsigned int ssrc); |
| 318 | int GetLocalSSRC(unsigned int& ssrc); |
| 319 | int GetRemoteSSRC(unsigned int& ssrc); |
| 320 | int SetSendAudioLevelIndicationStatus(bool enable, unsigned char id); |
| 321 | int SetReceiveAudioLevelIndicationStatus(bool enable, unsigned char id); |
| 322 | int SetSendAbsoluteSenderTimeStatus(bool enable, unsigned char id); |
| 323 | int SetReceiveAbsoluteSenderTimeStatus(bool enable, unsigned char id); |
| 324 | void EnableSendTransportSequenceNumber(int id); |
| 325 | void EnableReceiveTransportSequenceNumber(int id); |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 326 | |
stefan | bba9dec | 2016-02-01 04:39:55 -0800 | [diff] [blame] | 327 | void RegisterSenderCongestionControlObjects( |
| 328 | RtpPacketSender* rtp_packet_sender, |
| 329 | TransportFeedbackObserver* transport_feedback_observer, |
| 330 | PacketRouter* packet_router); |
| 331 | void RegisterReceiverCongestionControlObjects(PacketRouter* packet_router); |
| 332 | void ResetCongestionControlObjects(); |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 333 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 334 | void SetRTCPStatus(bool enable); |
| 335 | int GetRTCPStatus(bool& enabled); |
| 336 | int SetRTCP_CNAME(const char cName[256]); |
| 337 | int GetRemoteRTCP_CNAME(char cName[256]); |
| 338 | int GetRemoteRTCPData(unsigned int& NTPHigh, |
| 339 | unsigned int& NTPLow, |
| 340 | unsigned int& timestamp, |
| 341 | unsigned int& playoutTimestamp, |
| 342 | unsigned int* jitter, |
| 343 | unsigned short* fractionLost); |
| 344 | int SendApplicationDefinedRTCPPacket(unsigned char subType, |
| 345 | unsigned int name, |
| 346 | const char* data, |
| 347 | unsigned short dataLengthInBytes); |
| 348 | int GetRTPStatistics(unsigned int& averageJitterMs, |
| 349 | unsigned int& maxJitterMs, |
| 350 | unsigned int& discardedPackets); |
| 351 | int GetRemoteRTCPReportBlocks(std::vector<ReportBlock>* report_blocks); |
| 352 | int GetRTPStatistics(CallStatistics& stats); |
| 353 | int SetREDStatus(bool enable, int redPayloadtype); |
| 354 | int GetREDStatus(bool& enabled, int& redPayloadtype); |
| 355 | int SetCodecFECStatus(bool enable); |
| 356 | bool GetCodecFECStatus(); |
| 357 | void SetNACKStatus(bool enable, int maxNumberOfPackets); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 358 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 359 | // From AudioPacketizationCallback in the ACM |
| 360 | int32_t SendData(FrameType frameType, |
| 361 | uint8_t payloadType, |
| 362 | uint32_t timeStamp, |
| 363 | const uint8_t* payloadData, |
| 364 | size_t payloadSize, |
| 365 | const RTPFragmentationHeader* fragmentation) override; |
xians@webrtc.org | 3cefbc9 | 2014-10-10 09:42:53 +0000 | [diff] [blame] | 366 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 367 | // From ACMVADCallback in the ACM |
| 368 | int32_t InFrameType(FrameType frame_type) override; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 369 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 370 | int32_t OnRxVadDetected(int vadDecision); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 371 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 372 | // From RtpData in the RTP/RTCP module |
| 373 | int32_t OnReceivedPayloadData(const uint8_t* payloadData, |
| 374 | size_t payloadSize, |
| 375 | const WebRtcRTPHeader* rtpHeader) override; |
| 376 | bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override; |
wu@webrtc.org | 822fbd8 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 377 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 378 | // From RtpFeedback in the RTP/RTCP module |
| 379 | int32_t OnInitializeDecoder(int8_t payloadType, |
| 380 | const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
| 381 | int frequency, |
| 382 | size_t channels, |
| 383 | uint32_t rate) override; |
| 384 | void OnIncomingSSRCChanged(uint32_t ssrc) override; |
| 385 | void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override; |
wu@webrtc.org | 822fbd8 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 386 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 387 | // From Transport (called by the RTP/RTCP module) |
| 388 | bool SendRtp(const uint8_t* data, |
| 389 | size_t len, |
| 390 | const PacketOptions& packet_options) override; |
| 391 | bool SendRtcp(const uint8_t* data, size_t len) override; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 392 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 393 | // From MixerParticipant |
| 394 | int32_t GetAudioFrame(int32_t id, AudioFrame* audioFrame) override; |
| 395 | int32_t NeededFrequency(int32_t id) const override; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 396 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 397 | // From FileCallback |
| 398 | void PlayNotification(int32_t id, uint32_t durationMs) override; |
| 399 | void RecordNotification(int32_t id, uint32_t durationMs) override; |
| 400 | void PlayFileEnded(int32_t id) override; |
| 401 | void RecordFileEnded(int32_t id) override; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 402 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 403 | uint32_t InstanceId() const { return _instanceId; } |
| 404 | int32_t ChannelId() const { return _channelId; } |
| 405 | bool Playing() const { return channel_state_.Get().playing; } |
| 406 | bool Sending() const { return channel_state_.Get().sending; } |
| 407 | bool Receiving() const { return channel_state_.Get().receiving; } |
| 408 | bool ExternalTransport() const { |
| 409 | rtc::CritScope cs(&_callbackCritSect); |
| 410 | return _externalTransport; |
| 411 | } |
| 412 | bool ExternalMixing() const { return _externalMixing; } |
| 413 | RtpRtcp* RtpRtcpModulePtr() const { return _rtpRtcpModule.get(); } |
| 414 | int8_t OutputEnergyLevel() const { return _outputAudioLevel.Level(); } |
| 415 | uint32_t Demultiplex(const AudioFrame& audioFrame); |
| 416 | // Demultiplex the data to the channel's |_audioFrame|. The difference |
| 417 | // between this method and the overloaded method above is that |audio_data| |
| 418 | // does not go through transmit_mixer and APM. |
| 419 | void Demultiplex(const int16_t* audio_data, |
| 420 | int sample_rate, |
| 421 | size_t number_of_frames, |
| 422 | size_t number_of_channels); |
| 423 | uint32_t PrepareEncodeAndSend(int mixingFrequency); |
| 424 | uint32_t EncodeAndSend(); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 425 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 426 | // Associate to a send channel. |
| 427 | // Used for obtaining RTT for a receive-only channel. |
| 428 | void set_associate_send_channel(const ChannelOwner& channel) { |
| 429 | assert(_channelId != channel.channel()->ChannelId()); |
| 430 | rtc::CritScope lock(&assoc_send_channel_lock_); |
| 431 | associate_send_channel_ = channel; |
| 432 | } |
Minyue | 2013aec | 2015-05-13 14:14:42 +0200 | [diff] [blame] | 433 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 434 | // Disassociate a send channel if it was associated. |
| 435 | void DisassociateSendChannel(int channel_id); |
Minyue | 2013aec | 2015-05-13 14:14:42 +0200 | [diff] [blame] | 436 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 437 | protected: |
| 438 | void OnIncomingFractionLoss(int fraction_lost); |
minyue@webrtc.org | c1a40a7 | 2014-05-28 09:52:06 +0000 | [diff] [blame] | 439 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 440 | private: |
| 441 | bool ReceivePacket(const uint8_t* packet, |
| 442 | size_t packet_length, |
| 443 | const RTPHeader& header, |
| 444 | bool in_order); |
| 445 | bool HandleRtxPacket(const uint8_t* packet, |
| 446 | size_t packet_length, |
| 447 | const RTPHeader& header); |
| 448 | bool IsPacketInOrder(const RTPHeader& header) const; |
| 449 | bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; |
| 450 | int ResendPackets(const uint16_t* sequence_numbers, int length); |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 451 | int32_t MixOrReplaceAudioWithFile(int mixingFrequency); |
| 452 | int32_t MixAudioWithFile(AudioFrame& audioFrame, int mixingFrequency); |
| 453 | void UpdatePlayoutTimestamp(bool rtcp); |
| 454 | void UpdatePacketDelay(uint32_t timestamp, uint16_t sequenceNumber); |
| 455 | void RegisterReceiveCodecsToRTPModule(); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 456 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 457 | int SetRedPayloadType(int red_payload_type); |
| 458 | int SetSendRtpHeaderExtension(bool enable, |
| 459 | RTPExtensionType type, |
| 460 | unsigned char id); |
andrew@webrtc.org | eb524d9 | 2013-09-23 23:02:24 +0000 | [diff] [blame] | 461 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 462 | int32_t GetPlayoutFrequency(); |
| 463 | int64_t GetRTT(bool allow_associate_channel) const; |
wu@webrtc.org | 94454b7 | 2014-06-05 20:34:08 +0000 | [diff] [blame] | 464 | |
pbos | d8de115 | 2016-02-01 09:00:51 -0800 | [diff] [blame] | 465 | rtc::CriticalSection _fileCritSect; |
| 466 | rtc::CriticalSection _callbackCritSect; |
| 467 | rtc::CriticalSection volume_settings_critsect_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 468 | uint32_t _instanceId; |
| 469 | int32_t _channelId; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 470 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 471 | ChannelState channel_state_; |
henrika@webrtc.org | 944cbeb | 2014-03-18 10:32:33 +0000 | [diff] [blame] | 472 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 473 | RtcEventLog* const event_log_; |
Ivo Creusen | ae856f2 | 2015-09-17 16:30:16 +0200 | [diff] [blame] | 474 | |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 475 | std::unique_ptr<RtpHeaderParser> rtp_header_parser_; |
| 476 | std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry_; |
| 477 | std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; |
| 478 | std::unique_ptr<StatisticsProxy> statistics_proxy_; |
| 479 | std::unique_ptr<RtpReceiver> rtp_receiver_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 480 | TelephoneEventHandler* telephone_event_handler_; |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 481 | std::unique_ptr<RtpRtcp> _rtpRtcpModule; |
| 482 | std::unique_ptr<AudioCodingModule> audio_coding_; |
| 483 | std::unique_ptr<AudioSinkInterface> audio_sink_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 484 | AudioLevel _outputAudioLevel; |
| 485 | bool _externalTransport; |
| 486 | AudioFrame _audioFrame; |
| 487 | // Downsamples to the codec rate if necessary. |
| 488 | PushResampler<int16_t> input_resampler_; |
| 489 | FilePlayer* _inputFilePlayerPtr; |
| 490 | FilePlayer* _outputFilePlayerPtr; |
| 491 | FileRecorder* _outputFileRecorderPtr; |
| 492 | int _inputFilePlayerId; |
| 493 | int _outputFilePlayerId; |
| 494 | int _outputFileRecorderId; |
| 495 | bool _outputFileRecording; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 496 | bool _outputExternalMedia; |
| 497 | VoEMediaProcess* _inputExternalMediaCallbackPtr; |
| 498 | VoEMediaProcess* _outputExternalMediaCallbackPtr; |
| 499 | uint32_t _timeStamp; |
turaj@webrtc.org | 167b6df | 2013-12-13 21:05:07 +0000 | [diff] [blame] | 500 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 501 | RemoteNtpTimeEstimator ntp_estimator_ GUARDED_BY(ts_stats_lock_); |
wu@webrtc.org | 82c4b85 | 2014-05-20 22:55:01 +0000 | [diff] [blame] | 502 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 503 | // Timestamp of the audio pulled from NetEq. |
| 504 | uint32_t jitter_buffer_playout_timestamp_; |
| 505 | uint32_t playout_timestamp_rtp_ GUARDED_BY(video_sync_lock_); |
| 506 | uint32_t playout_timestamp_rtcp_; |
| 507 | uint32_t playout_delay_ms_ GUARDED_BY(video_sync_lock_); |
| 508 | uint32_t _numberOfDiscardedPackets; |
| 509 | uint16_t send_sequence_number_; |
| 510 | uint8_t restored_packet_[kVoiceEngineMaxIpPacketSizeBytes]; |
pwestin@webrtc.org | 1de0135 | 2013-04-11 20:23:35 +0000 | [diff] [blame] | 511 | |
pbos | d8de115 | 2016-02-01 09:00:51 -0800 | [diff] [blame] | 512 | rtc::CriticalSection ts_stats_lock_; |
wu@webrtc.org | cb711f7 | 2014-05-19 17:39:11 +0000 | [diff] [blame] | 513 | |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 514 | std::unique_ptr<rtc::TimestampWrapAroundHandler> rtp_ts_wraparound_handler_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 515 | // The rtp timestamp of the first played out audio frame. |
| 516 | int64_t capture_start_rtp_time_stamp_; |
| 517 | // The capture ntp time (in local timebase) of the first played out audio |
| 518 | // frame. |
| 519 | int64_t capture_start_ntp_time_ms_ GUARDED_BY(ts_stats_lock_); |
wu@webrtc.org | cb711f7 | 2014-05-19 17:39:11 +0000 | [diff] [blame] | 520 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 521 | // uses |
| 522 | Statistics* _engineStatisticsPtr; |
| 523 | OutputMixer* _outputMixerPtr; |
| 524 | TransmitMixer* _transmitMixerPtr; |
| 525 | ProcessThread* _moduleProcessThreadPtr; |
| 526 | AudioDeviceModule* _audioDeviceModulePtr; |
| 527 | VoiceEngineObserver* _voiceEngineObserverPtr; // owned by base |
| 528 | rtc::CriticalSection* _callbackCritSectPtr; // owned by base |
| 529 | Transport* _transportPtr; // WebRtc socket or external transport |
| 530 | RMSLevel rms_level_; |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 531 | std::unique_ptr<AudioProcessing> rx_audioproc_; // far end AudioProcessing |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 532 | VoERxVadCallback* _rxVadObserverPtr; |
| 533 | int32_t _oldVadDecision; |
| 534 | int32_t _sendFrameType; // Send data is voice, 1-voice, 0-otherwise |
| 535 | // VoEBase |
| 536 | bool _externalMixing; |
| 537 | bool _mixFileWithMicrophone; |
| 538 | // VoEVolumeControl |
solenberg | 1c2af8e | 2016-03-24 10:36:00 -0700 | [diff] [blame] | 539 | bool input_mute_ GUARDED_BY(volume_settings_critsect_); |
| 540 | bool previous_frame_muted_; // Only accessed from PrepareEncodeAndSend(). |
| 541 | float _panLeft GUARDED_BY(volume_settings_critsect_); |
| 542 | float _panRight GUARDED_BY(volume_settings_critsect_); |
| 543 | float _outputGain GUARDED_BY(volume_settings_critsect_); |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 544 | // VoeRTP_RTCP |
| 545 | uint32_t _lastLocalTimeStamp; |
| 546 | int8_t _lastPayloadType; |
| 547 | bool _includeAudioLevelIndication; |
| 548 | // VoENetwork |
| 549 | AudioFrame::SpeechType _outputSpeechType; |
| 550 | // VoEVideoSync |
pbos | d8de115 | 2016-02-01 09:00:51 -0800 | [diff] [blame] | 551 | rtc::CriticalSection video_sync_lock_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 552 | uint32_t _average_jitter_buffer_delay_us GUARDED_BY(video_sync_lock_); |
| 553 | uint32_t _previousTimestamp; |
| 554 | uint16_t _recPacketDelayMs GUARDED_BY(video_sync_lock_); |
| 555 | // VoEAudioProcessing |
| 556 | bool _RxVadDetection; |
| 557 | bool _rxAgcIsEnabled; |
| 558 | bool _rxNsIsEnabled; |
| 559 | bool restored_packet_in_use_; |
| 560 | // RtcpBandwidthObserver |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 561 | std::unique_ptr<VoERtcpObserver> rtcp_observer_; |
| 562 | std::unique_ptr<NetworkPredictor> network_predictor_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 563 | // An associated send channel. |
pbos | d8de115 | 2016-02-01 09:00:51 -0800 | [diff] [blame] | 564 | rtc::CriticalSection assoc_send_channel_lock_; |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 565 | ChannelOwner associate_send_channel_ GUARDED_BY(assoc_send_channel_lock_); |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 566 | |
kwiberg | 55b97fe | 2016-01-28 05:22:45 -0800 | [diff] [blame] | 567 | bool pacing_enabled_; |
| 568 | PacketRouter* packet_router_ = nullptr; |
kwiberg | b7f89d6 | 2016-02-17 10:04:18 -0800 | [diff] [blame] | 569 | std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; |
| 570 | std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; |
| 571 | std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 572 | }; |
| 573 | |
pbos@webrtc.org | d900e8b | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 574 | } // namespace voe |
pbos@webrtc.org | d900e8b | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 575 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 576 | |
andrew@webrtc.org | 382c0c2 | 2014-05-05 18:22:21 +0000 | [diff] [blame] | 577 | #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |