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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 stats.decoding_calls_to_neteq = ds.calls_to_neteq; | 200 stats.decoding_calls_to_neteq = ds.calls_to_neteq; |
201 stats.decoding_normal = ds.decoded_normal; | 201 stats.decoding_normal = ds.decoded_normal; |
202 stats.decoding_plc = ds.decoded_plc; | 202 stats.decoding_plc = ds.decoded_plc; |
203 stats.decoding_cng = ds.decoded_cng; | 203 stats.decoding_cng = ds.decoded_cng; |
204 stats.decoding_plc_cng = ds.decoded_plc_cng; | 204 stats.decoding_plc_cng = ds.decoded_plc_cng; |
205 stats.decoding_muted_output = ds.decoded_muted_output; | 205 stats.decoding_muted_output = ds.decoded_muted_output; |
206 | 206 |
207 return stats; | 207 return stats; |
208 } | 208 } |
209 | 209 |
| 210 int AudioReceiveStream::GetOutputLevel() const { |
| 211 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
| 212 return channel_proxy_->GetSpeechOutputLevel(); |
| 213 } |
| 214 |
210 void AudioReceiveStream::SetSink(std::unique_ptr<AudioSinkInterface> sink) { | 215 void AudioReceiveStream::SetSink(std::unique_ptr<AudioSinkInterface> sink) { |
211 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 216 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
212 channel_proxy_->SetSink(std::move(sink)); | 217 channel_proxy_->SetSink(std::move(sink)); |
213 } | 218 } |
214 | 219 |
215 void AudioReceiveStream::SetGain(float gain) { | 220 void AudioReceiveStream::SetGain(float gain) { |
216 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 221 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
217 channel_proxy_->SetChannelOutputVolumeScaling(gain); | 222 channel_proxy_->SetChannelOutputVolumeScaling(gain); |
218 } | 223 } |
219 | 224 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { | 331 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { |
327 ScopedVoEInterface<VoEBase> base(voice_engine()); | 332 ScopedVoEInterface<VoEBase> base(voice_engine()); |
328 if (playout) { | 333 if (playout) { |
329 return base->StartPlayout(config_.voe_channel_id); | 334 return base->StartPlayout(config_.voe_channel_id); |
330 } else { | 335 } else { |
331 return base->StopPlayout(config_.voe_channel_id); | 336 return base->StopPlayout(config_.voe_channel_id); |
332 } | 337 } |
333 } | 338 } |
334 } // namespace internal | 339 } // namespace internal |
335 } // namespace webrtc | 340 } // namespace webrtc |
OLD | NEW |