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

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

Issue 2686043006: WebRtcVoiceMediaChannel::AddRecvStream: Don't call SetRecPayloadType (Closed)
Patch Set: rebase 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/call/call_unittest.cc ('k') | webrtc/media/engine/webrtcvoiceengine.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) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return transmit_mixer_; 110 return transmit_mixer_;
111 } 111 }
112 WEBRTC_FUNC(CreateChannel, ()) { 112 WEBRTC_FUNC(CreateChannel, ()) {
113 return CreateChannel(webrtc::VoEBase::ChannelConfig()); 113 return CreateChannel(webrtc::VoEBase::ChannelConfig());
114 } 114 }
115 WEBRTC_FUNC(CreateChannel, (const webrtc::VoEBase::ChannelConfig& config)) { 115 WEBRTC_FUNC(CreateChannel, (const webrtc::VoEBase::ChannelConfig& config)) {
116 if (fail_create_channel_) { 116 if (fail_create_channel_) {
117 return -1; 117 return -1;
118 } 118 }
119 Channel* ch = new Channel(); 119 Channel* ch = new Channel();
120 auto db = webrtc::acm2::RentACodec::Database();
121 ch->recv_codecs.assign(db.begin(), db.end());
122 ch->neteq_capacity = config.acm_config.neteq_config.max_packets_in_buffer; 120 ch->neteq_capacity = config.acm_config.neteq_config.max_packets_in_buffer;
123 ch->neteq_fast_accelerate = 121 ch->neteq_fast_accelerate =
124 config.acm_config.neteq_config.enable_fast_accelerate; 122 config.acm_config.neteq_config.enable_fast_accelerate;
125 channels_[++last_channel_] = ch; 123 channels_[++last_channel_] = ch;
126 return last_channel_; 124 return last_channel_;
127 } 125 }
128 WEBRTC_FUNC(DeleteChannel, (int channel)) { 126 WEBRTC_FUNC(DeleteChannel, (int channel)) {
129 WEBRTC_CHECK_CHANNEL(channel); 127 WEBRTC_CHECK_CHANNEL(channel);
130 delete channels_[channel]; 128 delete channels_[channel];
131 channels_.erase(channel); 129 channels_.erase(channel);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 bool fail_create_channel_ = false; 218 bool fail_create_channel_ = false;
221 webrtc::AudioProcessing* apm_ = nullptr; 219 webrtc::AudioProcessing* apm_ = nullptr;
222 webrtc::voe::TransmitMixer* transmit_mixer_ = nullptr; 220 webrtc::voe::TransmitMixer* transmit_mixer_ = nullptr;
223 221
224 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine); 222 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine);
225 }; 223 };
226 224
227 } // namespace cricket 225 } // namespace cricket
228 226
229 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ 227 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/call/call_unittest.cc ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698