summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/intern/biquad~.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/biquad~.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/biquad~.c')
-rw-r--r--apps/plugins/pdbox/PDa/intern/biquad~.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/intern/biquad~.c b/apps/plugins/pdbox/PDa/intern/biquad~.c
index 2dc6d72071..f0a4ad2961 100644
--- a/apps/plugins/pdbox/PDa/intern/biquad~.c
+++ b/apps/plugins/pdbox/PDa/intern/biquad~.c
@@ -65,12 +65,17 @@ static t_int *sigbiquad_perform(t_int *w)
65 65
66static void sigbiquad_list(t_sigbiquad *x, t_symbol *s, int argc, t_atom *argv) 66static void sigbiquad_list(t_sigbiquad *x, t_symbol *s, int argc, t_atom *argv)
67{ 67{
68#ifdef ROCKBOX
69 (void) s;
70#endif
71
68 float fb1 = atom_getfloatarg(0, argc, argv); 72 float fb1 = atom_getfloatarg(0, argc, argv);
69 float fb2 = atom_getfloatarg(1, argc, argv); 73 float fb2 = atom_getfloatarg(1, argc, argv);
70 float ff1 = atom_getfloatarg(2, argc, argv); 74 float ff1 = atom_getfloatarg(2, argc, argv);
71 float ff2 = atom_getfloatarg(3, argc, argv); 75 float ff2 = atom_getfloatarg(3, argc, argv);
72 float ff3 = atom_getfloatarg(4, argc, argv); 76 float ff3 = atom_getfloatarg(4, argc, argv);
73 float discriminant = fb1 * fb1 + 4 * fb2; 77 float discriminant = fb1 * fb1 + 4 * fb2;
78
74 t_biquadctl *c = x->x_ctl; 79 t_biquadctl *c = x->x_ctl;
75 if (discriminant < 0) /* imaginary roots -- resonant filter */ 80 if (discriminant < 0) /* imaginary roots -- resonant filter */
76 { 81 {
@@ -99,6 +104,9 @@ stable:
99 104
100static void sigbiquad_set(t_sigbiquad *x, t_symbol *s, int argc, t_atom *argv) 105static void sigbiquad_set(t_sigbiquad *x, t_symbol *s, int argc, t_atom *argv)
101{ 106{
107#ifdef ROCKBOX
108 (void) s;
109#endif
102 t_biquadctl *c = x->x_ctl; 110 t_biquadctl *c = x->x_ctl;
103 c->c_x1 = atom_getfloatarg(0, argc, argv); 111 c->c_x1 = atom_getfloatarg(0, argc, argv);
104 c->c_x2 = atom_getfloatarg(1, argc, argv); 112 c->c_x2 = atom_getfloatarg(1, argc, argv);