X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=amp_filter.c;h=9369e4bcbeb1f9c9eec251f5136a34d9e223f8bb;hb=08471ab23c0abdf0ddd7ff836a15bd81fbce7520;hp=f3d0d87d45f077d901d5f4cb98c20dc9a3099547;hpb=8d106ca317a2c42f35a86ba244f843688f6939e6;p=paraslash.git diff --git a/amp_filter.c b/amp_filter.c index f3d0d87d..9369e4bc 100644 --- a/amp_filter.c +++ b/amp_filter.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2009 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2009 Andre Noll , see file COPYING. */ /** \file amp_filter.c Paraslash's amplify filter. */ @@ -39,15 +35,15 @@ static void amp_open(struct filter_node *fn) fn->private_data = pad; fn->min_iqs = 2; - if (!given && stat_item_values[SI_AMPLIFICATION]) - sscanf(stat_item_values[SI_AMPLIFICATION], "%u", &pad->amp); + if (!given && stat_item_values[SI_amplification]) + sscanf(stat_item_values[SI_amplification], "%u", &pad->amp); else pad->amp = amp_arg; PARA_INFO_LOG("amplification: %u (scaling factor: %1.2f)\n", 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; @@ -104,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, };