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