From c6d9a4373d855d72d7d7fe63718cd4dc79fd3881 Mon Sep 17 00:00:00 2001 From: Brad Midgley Date: Tue, 29 Jan 2008 18:56:13 +0000 Subject: revert 16-bit state.X change (bad on arm) --- sbc/sbc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sbc') diff --git a/sbc/sbc.c b/sbc/sbc.c index 97614fb9..a4f7b7dd 100644 --- a/sbc/sbc.c +++ b/sbc/sbc.c @@ -121,7 +121,7 @@ struct sbc_decoder_state { struct sbc_encoder_state { int subbands; int position[2]; - int16_t X[2][160]; + int32_t X[2][160]; }; /* @@ -709,7 +709,7 @@ static void sbc_encoder_init(struct sbc_encoder_state *state, } -static inline void _sbc_analyze_four(const int16_t *in, int32_t *out) +static inline void _sbc_analyze_four(const int32_t *in, int32_t *out) { sbc_extended_t res; sbc_fixed_t t[8]; @@ -794,7 +794,7 @@ static inline void sbc_analyze_four(struct sbc_encoder_state *state, state->position[ch] = 36; } -static inline void _sbc_analyze_eight(const int16_t *in, int32_t *out) +static inline void _sbc_analyze_eight(const int32_t *in, int32_t *out) { sbc_extended_t res; sbc_fixed_t t[8]; @@ -921,7 +921,7 @@ static inline void sbc_analyze_eight(struct sbc_encoder_state *state, struct sbc_frame *frame, int ch, int blk) { - int16_t *x = &state->X[ch][state->position[ch]]; + int32_t *x = &state->X[ch][state->position[ch]]; int16_t *pcm = &frame->pcm_sample[ch][blk * 8]; /* Input 8 Audio Samples */ -- cgit