X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=amp_filter.c;h=360e3fc2d7429bb7aa8219248ff4d38505a86ac2;hb=4ce5b6570ed83ef2ab5296f369f147593507286b;hp=61b1653ea069ce479b6b609da5703fc57bc717c1;hpb=c75c35b176cdacf157d27617e954961c88f33975;p=paraslash.git diff --git a/amp_filter.c b/amp_filter.c index 61b1653e..360e3fc2 100644 --- a/amp_filter.c +++ b/amp_filter.c @@ -29,7 +29,7 @@ static void amp_close(struct filter_node *fn) static void amp_open(struct filter_node *fn) { - struct private_amp_data *pad = para_calloc(sizeof(*pad)); + struct private_amp_data *pad = zalloc(sizeof(*pad)); unsigned given = FILTER_CMD_OPT_GIVEN(AMP, AMP, fn->lpr); uint32_t amp_arg = FILTER_CMD_OPT_UINT32_VAL(AMP, AMP, fn->lpr); @@ -43,7 +43,7 @@ static void amp_open(struct filter_node *fn) pad->amp, pad->amp / 64.0 + 1.0); } -static int amp_post_select(__a_unused struct sched *s, void *context) +static int amp_post_monitor(__a_unused struct sched *s, void *context) { struct filter_node *fn = context; struct private_amp_data *pad = fn->private_data; @@ -74,7 +74,7 @@ next_buffer: if (inplace) out = in; else - out = para_malloc(len * 2); + out = alloc(len * 2); for (i = 0; i < len; i++) { int x = (in[i] * factor) >> 6; @@ -100,6 +100,6 @@ err: const struct filter lsg_filter_cmd_com_amp_user_data = { .open = amp_open, .close = amp_close, - .pre_select = generic_filter_pre_select, - .post_select = amp_post_select, + .pre_monitor = generic_filter_pre_monitor, + .post_monitor = amp_post_monitor, };