X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=compress_filter.c;h=9f9d8515e3794139a65f9f3e7598d3d900829bcc;hb=08471ab23c0abdf0ddd7ff836a15bd81fbce7520;hp=15bed6dfa33c896421ab17a89ec426669cf4b025;hpb=c75c35b176cdacf157d27617e954961c88f33975;p=paraslash.git diff --git a/compress_filter.c b/compress_filter.c index 15bed6df..9f9d8515 100644 --- a/compress_filter.c +++ b/compress_filter.c @@ -37,7 +37,7 @@ static void compress_close(struct filter_node *fn) free(fn->private_data); } -static int compress_post_select(__a_unused struct sched *s, void *context) +static int compress_post_monitor(__a_unused struct sched *s, void *context) { struct filter_node *fn = context; struct private_compress_data *pcd = fn->private_data; @@ -79,7 +79,7 @@ next_buffer: sample *= pcd->current_gain; sample >>= inertia + 1; if (sample > 32767) { /* clip */ - PARA_WARNING_LOG("clip: %d\n", sample); + PARA_NOTICE_LOG("clip: %d\n", sample); sample = 32767; pcd->current_gain = (3 * pcd->current_gain + (1 << inertia)) / 4; @@ -162,6 +162,6 @@ const struct filter lsg_filter_cmd_com_compress_user_data = { .setup = compress_setup, .open = compress_open, .close = compress_close, - .pre_select = generic_filter_pre_select, - .post_select = compress_post_select, + .pre_monitor = generic_filter_pre_monitor, + .post_monitor = compress_post_monitor, };