From 37d13ceebeb7d08f30cb2895f7c1f0ba04c703b0 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Fri, 22 Feb 2008 14:45:58 +1100 Subject: [PATCH] Adding celt_sig_t where needed --- libcelt/mdct.c | 12 ++++++------ libcelt/mdct.h | 4 ++-- libcelt/pitch.c | 18 +++++++++--------- libcelt/pitch.h | 2 +- libcelt/psy.c | 2 +- libcelt/psy.h | 4 +++- 6 files changed, 22 insertions(+), 20 deletions(-) diff --git a/libcelt/mdct.c b/libcelt/mdct.c index 483a7497..8f9d432a 100644 --- a/libcelt/mdct.c +++ b/libcelt/mdct.c @@ -76,16 +76,16 @@ void mdct_clear(mdct_lookup *l) celt_free(l->trig); } -void mdct_forward(mdct_lookup *l, float *in, float *out) +void mdct_forward(mdct_lookup *l, celt_sig_t *in, celt_sig_t *out) { int i; int N, N2, N4, N8; - VARDECL(float *f); + VARDECL(celt_sig_t *f); N = l->n; N2 = N/2; N4 = N/4; N8 = N/8; - ALLOC(f, N2, float); + ALLOC(f, N2, celt_sig_t); /* Consider the input to be compused of four blocks: [a, b, c, d] */ /* Shuffle, fold, pre-rotate (part 1) */ @@ -120,16 +120,16 @@ void mdct_forward(mdct_lookup *l, float *in, float *out) } -void mdct_backward(mdct_lookup *l, float *in, float *out) +void mdct_backward(mdct_lookup *l, celt_sig_t *in, celt_sig_t *out) { int i; int N, N2, N4, N8; - VARDECL(float *f); + VARDECL(celt_sig_t *f); N = l->n; N2 = N/2; N4 = N/4; N8 = N/8; - ALLOC(f, N2, float); + ALLOC(f, N2, celt_sig_t); /* Pre-rotate */ for(i=0;i