replay_gain: converted replay_gain_mode to an enum
Prefer C enums over CPP macros.
This commit is contained in:
parent
e9c3497cd2
commit
837cefdb04
@ -25,7 +25,7 @@
|
|||||||
#include "audio_format.h"
|
#include "audio_format.h"
|
||||||
#include "os_compat.h"
|
#include "os_compat.h"
|
||||||
|
|
||||||
int replay_gain_mode = REPLAY_GAIN_OFF;
|
enum replay_gain_mode replay_gain_mode = REPLAY_GAIN_OFF;
|
||||||
|
|
||||||
static float replay_gain_preamp = 1.0;
|
static float replay_gain_preamp = 1.0;
|
||||||
|
|
||||||
|
@ -20,13 +20,15 @@
|
|||||||
#ifndef MPD_REPLAY_GAIN_H
|
#ifndef MPD_REPLAY_GAIN_H
|
||||||
#define MPD_REPLAY_GAIN_H
|
#define MPD_REPLAY_GAIN_H
|
||||||
|
|
||||||
#define REPLAY_GAIN_OFF 0
|
enum replay_gain_mode {
|
||||||
#define REPLAY_GAIN_TRACK 1
|
REPLAY_GAIN_OFF = -1,
|
||||||
#define REPLAY_GAIN_ALBUM 2
|
REPLAY_GAIN_ALBUM,
|
||||||
|
REPLAY_GAIN_TRACK,
|
||||||
|
};
|
||||||
|
|
||||||
struct audio_format;
|
struct audio_format;
|
||||||
|
|
||||||
extern int replay_gain_mode;
|
extern enum replay_gain_mode replay_gain_mode;
|
||||||
|
|
||||||
struct replay_gain_info {
|
struct replay_gain_info {
|
||||||
float album_gain;
|
float album_gain;
|
||||||
|
Loading…
Reference in New Issue
Block a user