OLD | NEW |
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 Loading... |
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 |
OLD | NEW |