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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 stats.decoding_plc_cng = ds.decoded_plc_cng; | 203 stats.decoding_plc_cng = ds.decoded_plc_cng; |
204 | 204 |
205 return stats; | 205 return stats; |
206 } | 206 } |
207 | 207 |
208 void AudioReceiveStream::SetSink(std::unique_ptr<AudioSinkInterface> sink) { | 208 void AudioReceiveStream::SetSink(std::unique_ptr<AudioSinkInterface> sink) { |
209 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 209 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
210 channel_proxy_->SetSink(std::move(sink)); | 210 channel_proxy_->SetSink(std::move(sink)); |
211 } | 211 } |
212 | 212 |
| 213 void AudioReceiveStream::SetGain(float gain) { |
| 214 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 215 channel_proxy_->SetChannelOutputVolumeScaling(gain); |
| 216 } |
| 217 |
213 const webrtc::AudioReceiveStream::Config& AudioReceiveStream::config() const { | 218 const webrtc::AudioReceiveStream::Config& AudioReceiveStream::config() const { |
214 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 219 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
215 return config_; | 220 return config_; |
216 } | 221 } |
217 | 222 |
218 void AudioReceiveStream::SignalNetworkState(NetworkState state) { | 223 void AudioReceiveStream::SignalNetworkState(NetworkState state) { |
219 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 224 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
220 } | 225 } |
221 | 226 |
222 bool AudioReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { | 227 bool AudioReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 262 |
258 VoiceEngine* AudioReceiveStream::voice_engine() const { | 263 VoiceEngine* AudioReceiveStream::voice_engine() const { |
259 internal::AudioState* audio_state = | 264 internal::AudioState* audio_state = |
260 static_cast<internal::AudioState*>(audio_state_.get()); | 265 static_cast<internal::AudioState*>(audio_state_.get()); |
261 VoiceEngine* voice_engine = audio_state->voice_engine(); | 266 VoiceEngine* voice_engine = audio_state->voice_engine(); |
262 RTC_DCHECK(voice_engine); | 267 RTC_DCHECK(voice_engine); |
263 return voice_engine; | 268 return voice_engine; |
264 } | 269 } |
265 } // namespace internal | 270 } // namespace internal |
266 } // namespace webrtc | 271 } // namespace webrtc |
OLD | NEW |