From 0e183d3fa1f216729725127d868d66268e1a35d4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 4 Jan 2010 13:31:20 +0100 Subject: replay_gain: refactor API, move code to replay_gain_state.c The replay_gain_state struct holds the precalculated scale factor, which is removed from struct replay_gain_info. --- src/replay_gain.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/replay_gain.h') diff --git a/src/replay_gain.h b/src/replay_gain.h index b26512975..c27e2be06 100644 --- a/src/replay_gain.h +++ b/src/replay_gain.h @@ -31,9 +31,9 @@ enum replay_gain_mode { REPLAY_GAIN_TRACK, }; -struct audio_format; - extern enum replay_gain_mode replay_gain_mode; +extern float replay_gain_preamp; +extern float replay_gain_missing_preamp; struct replay_gain_tuple { float gain; @@ -42,9 +42,6 @@ struct replay_gain_tuple { struct replay_gain_info { struct replay_gain_tuple tuples[2]; - - /* used internally by mpd, to mess with it */ - float scale; }; struct replay_gain_info * @@ -74,8 +71,4 @@ replay_gain_get_mode_string(void); bool replay_gain_set_mode_string(const char *p); -void -replay_gain_apply(struct replay_gain_info *info, char *buffer, int bufferSize, - const struct audio_format *format); - #endif -- cgit v1.2.3