Commit 8047b67b authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'sigwrap-fix'

parents 9d4a6904 db43bb27
......@@ -247,6 +247,20 @@ static void *sigwrap_new(void)
}
static t_int *sigwrap_perform(t_int *w)
{
t_sample *in = *(t_sample **)(w+1), *out = *(t_sample **)(w+2);
t_int n = *(t_int *)(w+3);
while (n--)
{
t_sample f = *in++;
int k = f;
if (k <= f) *out++ = f-k;
else *out++ = f - (k-1);
}
return (w + 4);
}
static t_int *sigwrap_perform_old(t_int *w)
{
t_sample *in = *(t_sample **)(w+1), *out = *(t_sample **)(w+2);
t_int n = *(t_int *)(w+3);
......@@ -262,7 +276,9 @@ static t_int *sigwrap_perform(t_int *w)
static void sigwrap_dsp(t_sigwrap *x, t_signal **sp)
{
dsp_add(sigwrap_perform, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
dsp_add((pd_compatibilitylevel > 47 ?
sigwrap_perform : sigwrap_perform_old),
3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
}
void sigwrap_setup(void)
......
......@@ -11,7 +11,7 @@ extern "C" {
#include <stdarg.h>
#define PD_MAJOR_VERSION 0
#define PD_MINOR_VERSION 47
#define PD_MINOR_VERSION 48
#define PD_BUGFIX_VERSION 0
#define PD_TEST_VERSION ""
#define PD_L2ORK_VERSION "2.2.3"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment