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

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

Issue 1588693002: Revert of Storing raw audio sink for default audio track. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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
« no previous file with comments | « webrtc/audio/audio_receive_stream.h ('k') | webrtc/audio/audio_sink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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( 206 void AudioReceiveStream::SetSink(rtc::scoped_ptr<AudioSinkInterface> sink) {
207 const rtc::scoped_refptr<AudioSinkInterface>& sink) {
208 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 207 RTC_DCHECK(thread_checker_.CalledOnValidThread());
209 channel_proxy_->SetSink(sink); 208 channel_proxy_->SetSink(std::move(sink));
210 } 209 }
211 210
212 const webrtc::AudioReceiveStream::Config& AudioReceiveStream::config() const { 211 const webrtc::AudioReceiveStream::Config& AudioReceiveStream::config() const {
213 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 212 RTC_DCHECK(thread_checker_.CalledOnValidThread());
214 return config_; 213 return config_;
215 } 214 }
216 215
217 VoiceEngine* AudioReceiveStream::voice_engine() const { 216 VoiceEngine* AudioReceiveStream::voice_engine() const {
218 internal::AudioState* audio_state = 217 internal::AudioState* audio_state =
219 static_cast<internal::AudioState*>(audio_state_.get()); 218 static_cast<internal::AudioState*>(audio_state_.get());
220 VoiceEngine* voice_engine = audio_state->voice_engine(); 219 VoiceEngine* voice_engine = audio_state->voice_engine();
221 RTC_DCHECK(voice_engine); 220 RTC_DCHECK(voice_engine);
222 return voice_engine; 221 return voice_engine;
223 } 222 }
224 } // namespace internal 223 } // namespace internal
225 } // namespace webrtc 224 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream.h ('k') | webrtc/audio/audio_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698