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

Unified Diff: webrtc/modules/audio_mixer/audio_mixer_impl.cc

Issue 2776113002: Send data from mixer to APM limiter more often. (Closed)
Patch Set: wip Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_mixer/audio_mixer_impl.cc
diff --git a/webrtc/modules/audio_mixer/audio_mixer_impl.cc b/webrtc/modules/audio_mixer/audio_mixer_impl.cc
index d9e195174c75b44853fedc880f09746425ea9659..188dc13e9301e0fb1d4f531e4cca1f4d276d350c 100644
--- a/webrtc/modules/audio_mixer/audio_mixer_impl.cc
+++ b/webrtc/modules/audio_mixer/audio_mixer_impl.cc
@@ -141,8 +141,10 @@ void AudioMixerImpl::Mix(size_t number_of_channels,
{
rtc::CritScope lock(&crit_);
+ const int number_of_streams = audio_source_list_.size();
frame_combiner_.Combine(GetAudioFromSources(), number_of_channels,
- OutputFrequency(), audio_frame_for_mixing);
+ OutputFrequency(), number_of_streams,
+ audio_frame_for_mixing);
}
return;
« no previous file with comments | « no previous file | webrtc/modules/audio_mixer/frame_combiner.h » ('j') | webrtc/modules/audio_mixer/frame_combiner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698