aboutsummaryrefslogtreecommitdiffstats
path: root/src/replayGain.h
blob: 6ab3897c72e8d058ca806840732d255f8a03ccb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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