diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/intern/ftom~.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/intern/ftom~.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/intern/ftom~.c b/apps/plugins/pdbox/PDa/intern/ftom~.c index fb40ff6e7c..0b6fa14a00 100644 --- a/apps/plugins/pdbox/PDa/intern/ftom~.c +++ b/apps/plugins/pdbox/PDa/intern/ftom~.c | |||
@@ -1,3 +1,8 @@ | |||
1 | #ifdef ROCKBOX | ||
2 | #include "plugin.h" | ||
3 | #include "pdbox.h" | ||
4 | #endif | ||
5 | |||
1 | #include <m_pd.h> | 6 | #include <m_pd.h> |
2 | #include <m_fixed.h> | 7 | #include <m_fixed.h> |
3 | 8 | ||
@@ -19,7 +24,11 @@ static void *ftom_tilde_new(void) | |||
19 | 24 | ||
20 | static t_int *ftom_tilde_perform(t_int *w) | 25 | static t_int *ftom_tilde_perform(t_int *w) |
21 | { | 26 | { |
27 | #ifdef ROCKBOX | ||
28 | t_sample *in = *(t_sample **)(w+1), *out = (t_sample*)*(t_float **)(w+2); | ||
29 | #else | ||
22 | t_sample *in = *(t_sample **)(w+1), *out = *(t_float **)(w+2); | 30 | t_sample *in = *(t_sample **)(w+1), *out = *(t_float **)(w+2); |
31 | #endif | ||
23 | t_int n = *(t_int *)(w+3); | 32 | t_int n = *(t_int *)(w+3); |
24 | for (; n--; *in++, out++) | 33 | for (; n--; *in++, out++) |
25 | { | 34 | { |
@@ -31,6 +40,9 @@ static t_int *ftom_tilde_perform(t_int *w) | |||
31 | 40 | ||
32 | static void ftom_tilde_dsp(t_ftom_tilde *x, t_signal **sp) | 41 | static void ftom_tilde_dsp(t_ftom_tilde *x, t_signal **sp) |
33 | { | 42 | { |
43 | #ifdef ROCKBOX | ||
44 | (void) x; | ||
45 | #endif | ||
34 | post("warning: %s not usable yet",__FUNCTION__); | 46 | post("warning: %s not usable yet",__FUNCTION__); |
35 | dsp_add(ftom_tilde_perform, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); | 47 | dsp_add(ftom_tilde_perform, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); |
36 | } | 48 | } |