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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 void AudioReceiveStream::SetSink(std::unique_ptr<AudioSinkInterface> sink) { | 212 void AudioReceiveStream::SetSink(std::unique_ptr<AudioSinkInterface> sink) { |
213 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 213 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
214 channel_proxy_->SetSink(std::move(sink)); | 214 channel_proxy_->SetSink(std::move(sink)); |
215 } | 215 } |
216 | 216 |
217 void AudioReceiveStream::SetGain(float gain) { | 217 void AudioReceiveStream::SetGain(float gain) { |
218 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 218 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
219 channel_proxy_->SetChannelOutputVolumeScaling(gain); | 219 channel_proxy_->SetChannelOutputVolumeScaling(gain); |
220 } | 220 } |
221 | 221 |
| 222 std::vector<RtpContributingSource> |
| 223 AudioReceiveStream::GetContributingSources() { |
| 224 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
| 225 return channel_proxy_->GetContributingSources(); |
| 226 } |
| 227 |
222 AudioMixer::Source::AudioFrameInfo AudioReceiveStream::GetAudioFrameWithInfo( | 228 AudioMixer::Source::AudioFrameInfo AudioReceiveStream::GetAudioFrameWithInfo( |
223 int sample_rate_hz, | 229 int sample_rate_hz, |
224 AudioFrame* audio_frame) { | 230 AudioFrame* audio_frame) { |
225 return channel_proxy_->GetAudioFrameWithInfo(sample_rate_hz, audio_frame); | 231 return channel_proxy_->GetAudioFrameWithInfo(sample_rate_hz, audio_frame); |
226 } | 232 } |
227 | 233 |
228 int AudioReceiveStream::Ssrc() const { | 234 int AudioReceiveStream::Ssrc() const { |
229 return config_.rtp.remote_ssrc; | 235 return config_.rtp.remote_ssrc; |
230 } | 236 } |
231 | 237 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { | 334 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { |
329 ScopedVoEInterface<VoEBase> base(voice_engine()); | 335 ScopedVoEInterface<VoEBase> base(voice_engine()); |
330 if (playout) { | 336 if (playout) { |
331 return base->StartPlayout(config_.voe_channel_id); | 337 return base->StartPlayout(config_.voe_channel_id); |
332 } else { | 338 } else { |
333 return base->StopPlayout(config_.voe_channel_id); | 339 return base->StopPlayout(config_.voe_channel_id); |
334 } | 340 } |
335 } | 341 } |
336 } // namespace internal | 342 } // namespace internal |
337 } // namespace webrtc | 343 } // namespace webrtc |
OLD | NEW |