From ea4ccb5abab7f3a775b0c1fee1a50a8840b09d47 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Sun, 19 Mar 2006 16:31:45 +0000 Subject: Samples should always be 32 bit on all platforms, so change most occurences of long to int32_t to enable working sounds also on 64 bit sims. Note that some codecs (MP3 and Wavpack) still have other 64 bit related problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9120 a1c6a512-1295-4272-9138-f99709370657 --- apps/eq.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/eq.h') diff --git a/apps/eq.h b/apps/eq.h index f29d765..9228658 100644 --- a/apps/eq.h +++ b/apps/eq.h @@ -20,6 +20,8 @@ #ifndef _EQ_H #define _EQ_H +#include + /* These depend on the fixed point formats used by the different filter types and need to be changed when they change. */ @@ -27,14 +29,14 @@ #define EQ_SHELF_SHIFT 8 struct eqfilter { - long coefs[5]; /* Order is b0, b1, b2, a1, a2 */ - long history[2][4]; + int32_t coefs[5]; /* Order is b0, b1, b2, a1, a2 */ + int32_t history[2][4]; }; void eq_pk_coefs(unsigned long cutoff, unsigned long Q, long db, long *c); void eq_ls_coefs(unsigned long cutoff, unsigned long Q, long db, long *c); void eq_hs_coefs(unsigned long cutoff, unsigned long Q, long db, long *c); -void eq_filter(long **x, struct eqfilter *f, unsigned num, +void eq_filter(int32_t **x, struct eqfilter *f, unsigned num, unsigned channels, unsigned shift); #endif -- cgit v1.1