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

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

Issue 1491743004: Refactor WVoE DTMF handling #2 (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@wvoe_dtmf
Patch Set: rebase Created 5 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
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | 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) 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 int error = channel()->GetSpeechOutputLevelFullRange(level); 101 int error = channel()->GetSpeechOutputLevelFullRange(level);
102 RTC_DCHECK_EQ(0, error); 102 RTC_DCHECK_EQ(0, error);
103 return static_cast<int32_t>(level); 103 return static_cast<int32_t>(level);
104 } 104 }
105 105
106 uint32_t ChannelProxy::GetDelayEstimate() const { 106 uint32_t ChannelProxy::GetDelayEstimate() const {
107 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 107 RTC_DCHECK(thread_checker_.CalledOnValidThread());
108 return channel()->GetDelayEstimate(); 108 return channel()->GetDelayEstimate();
109 } 109 }
110 110
111 bool ChannelProxy::SetSendTelephoneEventPayloadType(int payload_type) {
112 RTC_DCHECK(thread_checker_.CalledOnValidThread());
113 return channel()->SetSendTelephoneEventPayloadType(payload_type) == 0;
114 }
115
116 bool ChannelProxy::SendTelephoneEventOutband(uint8_t event,
117 uint32_t duration_ms) {
118 RTC_DCHECK(thread_checker_.CalledOnValidThread());
119 return
120 channel()->SendTelephoneEventOutband(event, duration_ms, 10, false) == 0;
121 }
122
111 Channel* ChannelProxy::channel() const { 123 Channel* ChannelProxy::channel() const {
112 RTC_DCHECK(channel_owner_.channel()); 124 RTC_DCHECK(channel_owner_.channel());
113 return channel_owner_.channel(); 125 return channel_owner_.channel();
114 } 126 }
115 } // namespace voe 127 } // namespace voe
116 } // namespace webrtc 128 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698