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

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

Issue 2518923003: Pass time constant to bwe smoothing filter. (Closed)
Patch Set: Respond to comments. Created 4 years 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 bool ChannelProxy::SetSendTelephoneEventPayloadType(int payload_type) { 139 bool ChannelProxy::SetSendTelephoneEventPayloadType(int payload_type) {
140 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 140 RTC_DCHECK(thread_checker_.CalledOnValidThread());
141 return channel()->SetSendTelephoneEventPayloadType(payload_type) == 0; 141 return channel()->SetSendTelephoneEventPayloadType(payload_type) == 0;
142 } 142 }
143 143
144 bool ChannelProxy::SendTelephoneEventOutband(int event, int duration_ms) { 144 bool ChannelProxy::SendTelephoneEventOutband(int event, int duration_ms) {
145 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 145 RTC_DCHECK(thread_checker_.CalledOnValidThread());
146 return channel()->SendTelephoneEventOutband(event, duration_ms) == 0; 146 return channel()->SendTelephoneEventOutband(event, duration_ms) == 0;
147 } 147 }
148 148
149 void ChannelProxy::SetBitrate(int bitrate_bps) { 149 void ChannelProxy::SetBitrate(int bitrate_bps,
150 rtc::Optional<int64_t> probing_interval_ms) {
150 // May be called on different threads and needs to be handled by the channel. 151 // May be called on different threads and needs to be handled by the channel.
151 channel()->SetBitRate(bitrate_bps); 152 channel()->SetBitRate(bitrate_bps, probing_interval_ms);
152 } 153 }
153 154
154 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) { 155 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) {
155 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 156 RTC_DCHECK(thread_checker_.CalledOnValidThread());
156 channel()->SetSink(std::move(sink)); 157 channel()->SetSink(std::move(sink));
157 } 158 }
158 159
159 void ChannelProxy::SetInputMute(bool muted) { 160 void ChannelProxy::SetInputMute(bool muted) {
160 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 161 RTC_DCHECK(thread_checker_.CalledOnValidThread());
161 int error = channel()->SetInputMute(muted); 162 int error = channel()->SetInputMute(muted);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 channel()->set_associate_send_channel(ChannelOwner(nullptr)); 248 channel()->set_associate_send_channel(ChannelOwner(nullptr));
248 } 249 }
249 250
250 Channel* ChannelProxy::channel() const { 251 Channel* ChannelProxy::channel() const {
251 RTC_DCHECK(channel_owner_.channel()); 252 RTC_DCHECK(channel_owner_.channel());
252 return channel_owner_.channel(); 253 return channel_owner_.channel();
253 } 254 }
254 255
255 } // namespace voe 256 } // namespace voe
256 } // namespace webrtc 257 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698