diff options
Diffstat (limited to '')
-rw-r--r-- | src/replayGain.h | 20 |
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 |