aboutsummaryrefslogtreecommitdiffstats
path: root/src/replayGain.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-07 22:42:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-07 22:42:54 +0000
commit04fdc209d9e2af8285c6e2015c2c5b69d0f85b5e (patch)
treea28ff627e524c0ae683267f913c2107bff359e02 /src/replayGain.h
parentff3323334aa3e140584d2a8aecf4f092dfb13bb2 (diff)
downloadmpd-04fdc209d9e2af8285c6e2015c2c5b69d0f85b5e.tar.gz
mpd-04fdc209d9e2af8285c6e2015c2c5b69d0f85b5e.tar.xz
mpd-04fdc209d9e2af8285c6e2015c2c5b69d0f85b5e.zip
add replayGain stuff for flac from AliasMrJones
git-svn-id: https://svn.musicpd.org/mpd/trunk@943 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/replayGain.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/replayGain.h b/src/replayGain.h
new file mode 100644
index 000000000..6ab3897c7
--- /dev/null
+++ b/src/replayGain.h
@@ -0,0 +1,19 @@
+#ifndef REPLAYGAIN_H
+#define REPLAYGAIN_H
+
+#include "audio.h"
+
+#define REPLAYGAIN_OFF 0
+#define REPLAYGAIN_TRACK 1
+#define REPLAYGAIN_ALBUM 2
+
+void initReplayGainState();
+
+int getReplayGainState();
+
+float computeReplayGainScale(float gain, float peak);
+
+void doReplayGain(char * buffer, int bufferSize, AudioFormat * format,
+ float scale);
+
+#endif