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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.h

Issue 1841083008: WebRtcVoiceEngine refactoring - moving codec configuration code into Send/RecvStreams (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 return VoiceMediaChannel::SendRtcp(&packet, rtc::PacketOptions()); 208 return VoiceMediaChannel::SendRtcp(&packet, rtc::PacketOptions());
209 } 209 }
210 210
211 int GetReceiveChannelId(uint32_t ssrc) const; 211 int GetReceiveChannelId(uint32_t ssrc) const;
212 int GetSendChannelId(uint32_t ssrc) const; 212 int GetSendChannelId(uint32_t ssrc) const;
213 213
214 private: 214 private:
215 bool SetOptions(const AudioOptions& options); 215 bool SetOptions(const AudioOptions& options);
216 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs); 216 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs);
217 bool SetSendCodecs(const std::vector<AudioCodec>& codecs); 217 bool SetSendCodecs(const std::vector<AudioCodec>& codecs);
218 bool SetSendCodecs(int channel);
219 void SetNack(int channel, bool nack_enabled);
220 bool SetSendCodec(int channel, const webrtc::CodecInst& send_codec);
221 bool SetMaxSendBandwidth(int bps); 218 bool SetMaxSendBandwidth(int bps);
222 bool SetLocalSource(uint32_t ssrc, AudioSource* source); 219 bool SetLocalSource(uint32_t ssrc, AudioSource* source);
223 bool MuteStream(uint32_t ssrc, bool mute); 220 bool MuteStream(uint32_t ssrc, bool mute);
224 221
225 WebRtcVoiceEngine* engine() { return engine_; } 222 WebRtcVoiceEngine* engine() { return engine_; }
226 int GetLastEngineError() { return engine()->GetLastEngineError(); } 223 int GetLastEngineError() { return engine()->GetLastEngineError(); }
227 int GetOutputLevel(int channel); 224 int GetOutputLevel(int channel);
228 bool SetPlayout(int channel, bool playout); 225 bool SetPlayout(int channel, bool playout);
229 bool ChangePlayout(bool playout); 226 bool ChangePlayout(bool playout);
230 int CreateVoEChannel(); 227 int CreateVoEChannel();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 int cng_payload_type = -1; 282 int cng_payload_type = -1;
286 int cng_plfreq = -1; 283 int cng_plfreq = -1;
287 webrtc::CodecInst codec_inst; 284 webrtc::CodecInst codec_inst;
288 } send_codec_spec_; 285 } send_codec_spec_;
289 286
290 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 287 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
291 }; 288 };
292 } // namespace cricket 289 } // namespace cricket
293 290
294 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ 291 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | webrtc/media/engine/webrtcvoiceengine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698