diff options
Diffstat (limited to 'webrtc/common_audio/signal_processing/resample_by_2.c')
-rw-r--r-- | webrtc/common_audio/signal_processing/resample_by_2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webrtc/common_audio/signal_processing/resample_by_2.c b/webrtc/common_audio/signal_processing/resample_by_2.c index dcba82e..73e1950 100644 --- a/webrtc/common_audio/signal_processing/resample_by_2.c +++ b/webrtc/common_audio/signal_processing/resample_by_2.c @@ -15,7 +15,7 @@ * */ -#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h" +#include "common_audio/signal_processing/include/signal_processing_library.h" #ifdef WEBRTC_ARCH_ARM_V7 @@ -83,7 +83,7 @@ void WebRtcSpl_DownsampleBy2(const int16_t* in, size_t len, for (i = (len >> 1); i > 0; i--) { // lower allpass filter - in32 = (int32_t)(*in++) << 10; + in32 = (int32_t)(*in++) * (1 << 10); diff = in32 - state1; tmp1 = MUL_ACCUM_1(kResampleAllpass2[0], diff, state0); state0 = in32; @@ -95,7 +95,7 @@ void WebRtcSpl_DownsampleBy2(const int16_t* in, size_t len, state2 = tmp2; // upper allpass filter - in32 = (int32_t)(*in++) << 10; + in32 = (int32_t)(*in++) * (1 << 10); diff = in32 - state5; tmp1 = MUL_ACCUM_1(kResampleAllpass1[0], diff, state4); state4 = in32; @@ -141,7 +141,7 @@ void WebRtcSpl_UpsampleBy2(const int16_t* in, size_t len, for (i = len; i > 0; i--) { // lower allpass filter - in32 = (int32_t)(*in++) << 10; + in32 = (int32_t)(*in++) * (1 << 10); diff = in32 - state1; tmp1 = MUL_ACCUM_1(kResampleAllpass1[0], diff, state0); state0 = in32; |