output_init: use the normalize filter plugin

Use the plugin instead of the glue code in normalize.c.  This is used
wrapped inside a "autoconv" filter, to enable normalization for all
input file formats.
This commit is contained in:
Max Kellermann
2009-12-14 21:36:25 +01:00
parent 6a17233f78
commit 870436a592
8 changed files with 22 additions and 113 deletions

View File

@@ -25,8 +25,6 @@
#include "audio.h"
#include "song.h"
#include "buffer.h"
#include "normalize.h"
#include "pipe.h"
#include "chunk.h"
@@ -340,8 +338,6 @@ decoder_data(struct decoder *decoder,
if (replay_gain_mode != REPLAY_GAIN_OFF)
replay_gain_apply(replay_gain_info, dest, nbytes,
&dc->out_audio_format);
else if (normalizationEnabled)
normalizeData(dest, nbytes, &dc->out_audio_format);
/* expand the music pipe chunk */