Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1384)

Side by Side Diff: webrtc/audio/audio_receive_stream.cc

Issue 1551813002: Storing raw audio sink for default audio track. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding unit tests for SetRawAudioSink. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 stats.decoding_calls_to_silence_generator = ds.calls_to_silence_generator; 196 stats.decoding_calls_to_silence_generator = ds.calls_to_silence_generator;
197 stats.decoding_calls_to_neteq = ds.calls_to_neteq; 197 stats.decoding_calls_to_neteq = ds.calls_to_neteq;
198 stats.decoding_normal = ds.decoded_normal; 198 stats.decoding_normal = ds.decoded_normal;
199 stats.decoding_plc = ds.decoded_plc; 199 stats.decoding_plc = ds.decoded_plc;
200 stats.decoding_cng = ds.decoded_cng; 200 stats.decoding_cng = ds.decoded_cng;
201 stats.decoding_plc_cng = ds.decoded_plc_cng; 201 stats.decoding_plc_cng = ds.decoded_plc_cng;
202 202
203 return stats; 203 return stats;
204 } 204 }
205 205
206 void AudioReceiveStream::SetSink(rtc::scoped_ptr<AudioSinkInterface> sink) { 206 void AudioReceiveStream::SetSink(rtc::scoped_refptr<AudioSinkInterface> sink) {
207 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 207 RTC_DCHECK(thread_checker_.CalledOnValidThread());
208 channel_proxy_->SetSink(std::move(sink)); 208 channel_proxy_->SetSink(sink);
209 } 209 }
210 210
211 const webrtc::AudioReceiveStream::Config& AudioReceiveStream::config() const { 211 const webrtc::AudioReceiveStream::Config& AudioReceiveStream::config() const {
212 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 212 RTC_DCHECK(thread_checker_.CalledOnValidThread());
213 return config_; 213 return config_;
214 } 214 }
215 215
216 VoiceEngine* AudioReceiveStream::voice_engine() const { 216 VoiceEngine* AudioReceiveStream::voice_engine() const {
217 internal::AudioState* audio_state = 217 internal::AudioState* audio_state =
218 static_cast<internal::AudioState*>(audio_state_.get()); 218 static_cast<internal::AudioState*>(audio_state_.get());
219 VoiceEngine* voice_engine = audio_state->voice_engine(); 219 VoiceEngine* voice_engine = audio_state->voice_engine();
220 RTC_DCHECK(voice_engine); 220 RTC_DCHECK(voice_engine);
221 return voice_engine; 221 return voice_engine;
222 } 222 }
223 } // namespace internal 223 } // namespace internal
224 } // namespace webrtc 224 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698