summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/intern/biquad~.c
diff options
context:
space:
mode:
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);