aboutsummaryrefslogtreecommitdiffstats
path: root/src/replay_gain.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-04 13:31:20 +0100
committerMax Kellermann <max@duempel.org>2010-01-04 20:54:01 +0100
commit0e183d3fa1f216729725127d868d66268e1a35d4 (patch)
tree63f14bdadec2e24104fa0fe957d2a30900e25385 /src/replay_gain.h
parentcd8f92c9285e9b3b460ff47d2f251bfabce544da (diff)
downloadmpd-0e183d3fa1f216729725127d868d66268e1a35d4.tar.gz
mpd-0e183d3fa1f216729725127d868d66268e1a35d4.tar.xz
mpd-0e183d3fa1f216729725127d868d66268e1a35d4.zip
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.
Diffstat (limited to '')
-rw-r--r--src/replay_gain.h11
1 files changed, 2 insertions, 9 deletions
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