aboutsummaryrefslogtreecommitdiffstats
path: root/src/replayGain.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-02 19:56:59 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-02 19:56:59 +0000
commit54679d9028117360e50a85a1f4b4f376f13ad6a3 (patch)
treee23dbf750251f57a6f836ca65693628916eca006 /src/replayGain.h
parent1d105d126e84f80b28bc60a742e2631a4227a101 (diff)
downloadmpd-54679d9028117360e50a85a1f4b4f376f13ad6a3.tar.gz
mpd-54679d9028117360e50a85a1f4b4f376f13ad6a3.tar.xz
mpd-54679d9028117360e50a85a1f4b4f376f13ad6a3.zip
rewrite replaygain code, needs testing
git-svn-id: https://svn.musicpd.org/mpd/trunk@2482 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/replayGain.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/replayGain.h b/src/replayGain.h
index 5d8ee7b24..112034fbe 100644
--- a/src/replayGain.h
+++ b/src/replayGain.h
@@ -26,13 +26,23 @@
#define REPLAYGAIN_TRACK 1
#define REPLAYGAIN_ALBUM 2
-void initReplayGainState();
+typedef struct _ReplayGainInfo {
+ float albumGain;
+ float albumPeak;
+ float trackGain;
+ float trackPeak;
+
+ /* used internally by mpd, to mess with it*/
+ float scale;
+} ReplayGainInfo;
-int getReplayGainState();
+ReplayGainInfo * newReplayGainInfo();
-float computeReplayGainScale(float gain, float peak);
+void freeReplayGainInfo(ReplayGainInfo * info);
+
+void initReplayGainState();
-void doReplayGain(char * buffer, int bufferSize, AudioFormat * format,
- float scale);
+void doReplayGain(ReplayGainInfo * info, char * buffer, int bufferSize,
+ AudioFormat * format);
#endif