Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
837cefdb
Commit
837cefdb
authored
Nov 11, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replay_gain: converted replay_gain_mode to an enum
Prefer C enums over CPP macros.
parent
e9c3497c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
replay_gain.c
src/replay_gain.c
+1
-1
replay_gain.h
src/replay_gain.h
+6
-4
No files found.
src/replay_gain.c
View file @
837cefdb
...
...
@@ -25,7 +25,7 @@
#include "audio_format.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
;
...
...
src/replay_gain.h
View file @
837cefdb
...
...
@@ -20,13 +20,15 @@
#ifndef MPD_REPLAY_GAIN_H
#define MPD_REPLAY_GAIN_H
#define REPLAY_GAIN_OFF 0
#define REPLAY_GAIN_TRACK 1
#define REPLAY_GAIN_ALBUM 2
enum
replay_gain_mode
{
REPLAY_GAIN_OFF
=
-
1
,
REPLAY_GAIN_ALBUM
,
REPLAY_GAIN_TRACK
,
};
struct
audio_format
;
extern
int
replay_gain_mode
;
extern
enum
replay_gain_mode
replay_gain_mode
;
struct
replay_gain_info
{
float
album_gain
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment