summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/intern/tabread~.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2009-07-03 22:16:11 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2009-07-03 22:16:11 +0000
commit0d4560cb0305029fa5f0739670286176ab47cb65 (patch)
tree9899f4324664a77e6a5884fdd1541818a28a2172 /apps/plugins/pdbox/PDa/intern/tabread~.c
parenteabeb928ddfdbe5fc6379efb87d9522803310649 (diff)
downloadrockbox-0d4560cb0305029fa5f0739670286176ab47cb65.tar.gz
rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.zip
Accept FS #10244 by Wincent Balin: more pdbox work done for GSoC; also some keyword and line-ending fixes by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/intern/tabread~.c')
-rw-r--r--apps/plugins/pdbox/PDa/intern/tabread~.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/intern/tabread~.c b/apps/plugins/pdbox/PDa/intern/tabread~.c
index 5a7ea5d57f..c46a9045a0 100644
--- a/apps/plugins/pdbox/PDa/intern/tabread~.c
+++ b/apps/plugins/pdbox/PDa/intern/tabread~.c
@@ -1,4 +1,7 @@
1#ifndef ROCKBOX
1#define FIXEDPOINT 2#define FIXEDPOINT
3#endif
4
2#include <m_pd.h> 5#include <m_pd.h>
3#include <m_fixed.h> 6#include <m_fixed.h>
4 7
@@ -30,7 +33,11 @@ static t_int *tabread_tilde_perform(t_int *w)
30 t_sample *out = (t_sample *)(w[3]); 33 t_sample *out = (t_sample *)(w[3]);
31 int n = (int)(w[4]); 34 int n = (int)(w[4]);
32 int maxindex; 35 int maxindex;
36#ifdef ROCKBOX
37 t_sample *buf = x->x_vec;
38#else
33 t_sample *buf = x->x_vec, *fp; 39 t_sample *buf = x->x_vec, *fp;
40#endif
34 int i; 41 int i;
35 42
36 maxindex = x->x_npoints - 1; 43 maxindex = x->x_npoints - 1;
@@ -82,6 +89,9 @@ static void tabread_tilde_dsp(t_tabread_tilde *x, t_signal **sp)
82 89
83static void tabread_tilde_free(t_tabread_tilde *x) 90static void tabread_tilde_free(t_tabread_tilde *x)
84{ 91{
92#ifdef ROCKBOX
93 (void) x;
94#endif
85} 95}
86 96
87void tabread_tilde_setup(void) 97void tabread_tilde_setup(void)