Chromium Code Reviews| Index: chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc |
| diff --git a/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc b/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc |
| index 5f4b3e242dba708faca54239b5c517c4d7ebe71d..fcd1a5bea46466341a5458344d2a48205bbe5aee 100644 |
| --- a/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc |
| +++ b/chromecast/media/cma/backend/alsa/stream_mixer_alsa.cc |
| @@ -23,7 +23,6 @@ |
| #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.h" |
| #include "media/base/audio_bus.h" |
| #include "media/base/media_switches.h" |
| -#include "media/base/vector_math.h" |
| #define RETURN_REPORT_ERROR(snd_func, ...) \ |
| do { \ |
| @@ -832,8 +831,8 @@ bool StreamMixerAlsa::TryWriteFrames() { |
| for (int c = 0; c < kNumOutputChannels; ++c) { |
| float volume_scalar = input->volume_multiplier(); |
|
kmackay
2016/09/14 20:48:15
volume_multipler() method not needed anymore
jyw
2016/09/15 01:12:15
Done.
|
| DCHECK(volume_scalar >= 0.0 && volume_scalar <= 1.0) << volume_scalar; |
| - ::media::vector_math::FMAC(temp_->channel(c), volume_scalar, chunk_size, |
| - mixed_->channel(c)); |
| + input->VolumeScaleAccumulate(temp_->channel(c), chunk_size, |
| + mixed_->channel(c)); |
| } |
| } |