Chromium Code Reviews

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

Issue 1722253002: - Clean up unused voice engine DTMF code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@voe_dtmf_1
Patch Set: more remove Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 1184 matching lines...)
1195 call_->DestroyAudioSendStream(stream_); 1195 call_->DestroyAudioSendStream(stream_);
1196 stream_ = nullptr; 1196 stream_ = nullptr;
1197 } 1197 }
1198 config_.rtp.extensions = extensions; 1198 config_.rtp.extensions = extensions;
1199 RTC_DCHECK(!stream_); 1199 RTC_DCHECK(!stream_);
1200 stream_ = call_->CreateAudioSendStream(config_); 1200 stream_ = call_->CreateAudioSendStream(config_);
1201 RTC_CHECK(stream_); 1201 RTC_CHECK(stream_);
1202 } 1202 }
1203 1203
1204 bool SendTelephoneEvent(int payload_type, uint8_t event, 1204 bool SendTelephoneEvent(int payload_type, uint8_t event,
1205 uint32_t duration_ms) { 1205 uint16_t duration_ms) {
1206 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 1206 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
1207 RTC_DCHECK(stream_); 1207 RTC_DCHECK(stream_);
1208 return stream_->SendTelephoneEvent(payload_type, event, duration_ms); 1208 return stream_->SendTelephoneEvent(payload_type, event, duration_ms);
1209 } 1209 }
1210 1210
1211 webrtc::AudioSendStream::Stats GetStats() const { 1211 webrtc::AudioSendStream::Stats GetStats() const {
1212 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 1212 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
1213 RTC_DCHECK(stream_); 1213 RTC_DCHECK(stream_);
1214 return stream_->GetStats(); 1214 return stream_->GetStats();
1215 } 1215 }
(...skipping 1330 matching lines...)
2546 } 2546 }
2547 } else { 2547 } else {
2548 LOG(LS_INFO) << "Stopping playout for channel #" << channel; 2548 LOG(LS_INFO) << "Stopping playout for channel #" << channel;
2549 engine()->voe()->base()->StopPlayout(channel); 2549 engine()->voe()->base()->StopPlayout(channel);
2550 } 2550 }
2551 return true; 2551 return true;
2552 } 2552 }
2553 } // namespace cricket 2553 } // namespace cricket
2554 2554
2555 #endif // HAVE_WEBRTC_VOICE 2555 #endif // HAVE_WEBRTC_VOICE
OLDNEW

Powered by Google App Engine