summaryrefslogtreecommitdiff
path: root/apps/eq.h
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-03-19 16:31:45 +0000
committerThom Johansen <thomj@rockbox.org>2006-03-19 16:31:45 +0000
commitea4ccb5abab7f3a775b0c1fee1a50a8840b09d47 (patch)
tree24d2d5d5da23c90eb25c23fa43c036710f5cb046 /apps/eq.h
parentf383cc14bd7d1c567fb283af4b3af252a2a3f6c9 (diff)
downloadrockbox-ea4ccb5abab7f3a775b0c1fee1a50a8840b09d47.zip
rockbox-ea4ccb5abab7f3a775b0c1fee1a50a8840b09d47.tar.gz
rockbox-ea4ccb5abab7f3a775b0c1fee1a50a8840b09d47.tar.bz2
rockbox-ea4ccb5abab7f3a775b0c1fee1a50a8840b09d47.tar.xz
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
Diffstat (limited to 'apps/eq.h')
-rw-r--r--apps/eq.h8
1 files changed, 5 insertions, 3 deletions
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 <inttypes.h>
+
/* 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