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

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

Issue 2420913002: Move audio frame memory handling inside AudioMixer. (Closed)
Patch Set: Updated interface usages (I landed another CL in the wrong order...). Created 4 years, 2 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/modules/audio_mixer/audio_mixer_impl.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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 if (packet_time.timestamp >= 0) 265 if (packet_time.timestamp >= 0)
266 arrival_time_ms = (packet_time.timestamp + 500) / 1000; 266 arrival_time_ms = (packet_time.timestamp + 500) / 1000;
267 size_t payload_size = length - header.headerLength; 267 size_t payload_size = length - header.headerLength;
268 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size, 268 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size,
269 header); 269 header);
270 } 270 }
271 271
272 return channel_proxy_->ReceivedRTPPacket(packet, length, packet_time); 272 return channel_proxy_->ReceivedRTPPacket(packet, length, packet_time);
273 } 273 }
274 274
275 AudioMixer::Source::AudioFrameWithInfo 275 AudioMixer::Source::AudioFrameInfo AudioReceiveStream::GetAudioFrameWithInfo(
276 AudioReceiveStream::GetAudioFrameWithInfo(int sample_rate_hz) { 276 int sample_rate_hz,
277 return channel_proxy_->GetAudioFrameWithInfo(sample_rate_hz); 277 AudioFrame* audio_frame) {
278 return channel_proxy_->GetAudioFrameWithInfo(sample_rate_hz, audio_frame);
278 } 279 }
279 280
280 int AudioReceiveStream::Ssrc() { 281 int AudioReceiveStream::Ssrc() {
281 return config_.rtp.local_ssrc; 282 return config_.rtp.local_ssrc;
282 } 283 }
283 284
284 VoiceEngine* AudioReceiveStream::voice_engine() const { 285 VoiceEngine* AudioReceiveStream::voice_engine() const {
285 internal::AudioState* audio_state = 286 internal::AudioState* audio_state =
286 static_cast<internal::AudioState*>(audio_state_.get()); 287 static_cast<internal::AudioState*>(audio_state_.get());
287 VoiceEngine* voice_engine = audio_state->voice_engine(); 288 VoiceEngine* voice_engine = audio_state->voice_engine();
288 RTC_DCHECK(voice_engine); 289 RTC_DCHECK(voice_engine);
289 return voice_engine; 290 return voice_engine;
290 } 291 }
291 } // namespace internal 292 } // namespace internal
292 } // namespace webrtc 293 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream.h ('k') | webrtc/modules/audio_mixer/audio_mixer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698