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
17c6db6c
Commit
17c6db6c
authored
Oct 02, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replay_gain_*.h: rename to *.hxx
parent
86316b18
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
29 additions
and
63 deletions
+29
-63
Makefile.am
Makefile.am
+2
-4
DecoderAPI.cxx
src/DecoderAPI.cxx
+1
-1
DecoderAPI.hxx
src/DecoderAPI.hxx
+1
-1
DecoderInternal.hxx
src/DecoderInternal.hxx
+1
-1
Main.cxx
src/Main.cxx
+1
-1
MusicChunk.hxx
src/MusicChunk.hxx
+1
-1
OutputAll.hxx
src/OutputAll.hxx
+1
-1
OutputControl.hxx
src/OutputControl.hxx
+1
-1
PlayerCommands.cxx
src/PlayerCommands.cxx
+1
-7
ReplayGainConfig.cxx
src/ReplayGainConfig.cxx
+1
-1
ReplayGainConfig.hxx
src/ReplayGainConfig.hxx
+4
-14
ReplayGainInfo.cxx
src/ReplayGainInfo.cxx
+1
-1
ReplayGainInfo.hxx
src/ReplayGainInfo.hxx
+3
-20
FlacMetadata.cxx
src/decoder/FlacMetadata.cxx
+1
-1
VorbisComments.cxx
src/decoder/VorbisComments.cxx
+2
-1
ReplayGainFilterPlugin.cxx
src/filter/ReplayGainFilterPlugin.cxx
+2
-2
ReplayGainFilterPlugin.hxx
src/filter/ReplayGainFilterPlugin.hxx
+1
-1
ApeReplayGain.cxx
src/tag/ApeReplayGain.cxx
+1
-1
TagRva2.cxx
src/tag/TagRva2.cxx
+1
-1
FakeReplayGainConfig.cxx
test/FakeReplayGainConfig.cxx
+1
-1
dump_rva2.cxx
test/dump_rva2.cxx
+1
-1
No files found.
Makefile.am
View file @
17c6db6c
...
@@ -62,8 +62,6 @@ mpd_headers = \
...
@@ -62,8 +62,6 @@ mpd_headers = \
src/open.h
\
src/open.h
\
src/Playlist.hxx
\
src/Playlist.hxx
\
src/poison.h
\
src/poison.h
\
src/replay_gain_config.h
\
src/replay_gain_info.h
\
src/TimePrint.cxx src/TimePrint.hxx
\
src/TimePrint.cxx src/TimePrint.hxx
\
src/Timer.hxx
src/Timer.hxx
...
@@ -192,8 +190,8 @@ src_mpd_SOURCES = \
...
@@ -192,8 +190,8 @@ src_mpd_SOURCES = \
src/Queue.cxx src/Queue.hxx
\
src/Queue.cxx src/Queue.hxx
\
src/QueuePrint.cxx src/QueuePrint.hxx
\
src/QueuePrint.cxx src/QueuePrint.hxx
\
src/QueueSave.cxx src/QueueSave.hxx
\
src/QueueSave.cxx src/QueueSave.hxx
\
src/ReplayGainConfig.cxx
\
src/ReplayGainConfig.cxx
src/ReplayGainConfig.hxx
\
src/ReplayGainInfo.cxx
\
src/ReplayGainInfo.cxx
src/ReplayGainInfo.hxx
\
src/SignalHandlers.cxx src/SignalHandlers.hxx
\
src/SignalHandlers.cxx src/SignalHandlers.hxx
\
src/Song.cxx src/Song.hxx
\
src/Song.cxx src/Song.hxx
\
src/SongUpdate.cxx
\
src/SongUpdate.cxx
\
...
...
src/DecoderAPI.cxx
View file @
17c6db6c
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "DecoderAPI.hxx"
#include "DecoderAPI.hxx"
#include "DecoderError.hxx"
#include "DecoderError.hxx"
#include "AudioConfig.hxx"
#include "AudioConfig.hxx"
#include "
replay_gain_config.h
"
#include "
ReplayGainConfig.hxx
"
#include "MusicChunk.hxx"
#include "MusicChunk.hxx"
#include "MusicBuffer.hxx"
#include "MusicBuffer.hxx"
#include "MusicPipe.hxx"
#include "MusicPipe.hxx"
...
...
src/DecoderAPI.hxx
View file @
17c6db6c
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "check.h"
#include "check.h"
#include "DecoderCommand.hxx"
#include "DecoderCommand.hxx"
#include "DecoderPlugin.hxx"
#include "DecoderPlugin.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
...
...
src/DecoderInternal.hxx
View file @
17c6db6c
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "DecoderCommand.hxx"
#include "DecoderCommand.hxx"
#include "pcm/PcmConvert.hxx"
#include "pcm/PcmConvert.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
struct
input_stream
;
struct
input_stream
;
struct
Tag
;
struct
Tag
;
...
...
src/Main.cxx
View file @
17c6db6c
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#include "Volume.hxx"
#include "Volume.hxx"
#include "OutputAll.hxx"
#include "OutputAll.hxx"
#include "tag/TagConfig.hxx"
#include "tag/TagConfig.hxx"
#include "
replay_gain_config.h
"
#include "
ReplayGainConfig.hxx
"
#include "Idle.hxx"
#include "Idle.hxx"
#include "SignalHandlers.hxx"
#include "SignalHandlers.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
...
src/MusicChunk.hxx
View file @
17c6db6c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_MUSIC_CHUNK_HXX
#ifndef MPD_MUSIC_CHUNK_HXX
#define MPD_MUSIC_CHUNK_HXX
#define MPD_MUSIC_CHUNK_HXX
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#ifndef NDEBUG
#ifndef NDEBUG
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
...
...
src/OutputAll.hxx
View file @
17c6db6c
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#ifndef OUTPUT_ALL_H
#ifndef OUTPUT_ALL_H
#define OUTPUT_ALL_H
#define OUTPUT_ALL_H
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include "gcc.h"
#include "gcc.h"
struct
AudioFormat
;
struct
AudioFormat
;
...
...
src/OutputControl.hxx
View file @
17c6db6c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_OUTPUT_CONTROL_HXX
#ifndef MPD_OUTPUT_CONTROL_HXX
#define MPD_OUTPUT_CONTROL_HXX
#define MPD_OUTPUT_CONTROL_HXX
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include <stddef.h>
#include <stddef.h>
...
...
src/PlayerCommands.cxx
View file @
17c6db6c
...
@@ -29,14 +29,8 @@
...
@@ -29,14 +29,8 @@
#include "Partition.hxx"
#include "Partition.hxx"
#include "protocol/Result.hxx"
#include "protocol/Result.hxx"
#include "protocol/ArgParser.hxx"
#include "protocol/ArgParser.hxx"
extern
"C"
{
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
}
#include "ReplayGainConfig.hxx"
#include "replay_gain_config.h"
#include <errno.h>
#define COMMAND_STATUS_STATE "state"
#define COMMAND_STATUS_STATE "state"
#define COMMAND_STATUS_REPEAT "repeat"
#define COMMAND_STATUS_REPEAT "repeat"
...
...
src/ReplayGainConfig.cxx
View file @
17c6db6c
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "
replay_gain_config.h
"
#include "
ReplayGainConfig.hxx
"
#include "Idle.hxx"
#include "Idle.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigGlobal.hxx"
...
...
src/
replay_gain_config.h
→
src/
ReplayGainConfig.hxx
View file @
17c6db6c
/*
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
* http://www.musicpd.org
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -17,23 +17,17 @@
...
@@ -17,23 +17,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
*/
#ifndef MPD_REPLAY_GAIN_CONFIG_H
#ifndef MPD_REPLAY_GAIN_CONFIG_H
XX
#define MPD_REPLAY_GAIN_CONFIG_H
#define MPD_REPLAY_GAIN_CONFIG_H
XX
#include "check.h"
#include "check.h"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include <stdbool.h>
extern
enum
replay_gain_mode
replay_gain_mode
;
extern
enum
replay_gain_mode
replay_gain_mode
;
extern
float
replay_gain_preamp
;
extern
float
replay_gain_preamp
;
extern
float
replay_gain_missing_preamp
;
extern
float
replay_gain_missing_preamp
;
extern
bool
replay_gain_limit
;
extern
bool
replay_gain_limit
;
#ifdef __cplusplus
extern
"C"
{
#endif
void
replay_gain_global_init
(
void
);
void
replay_gain_global_init
(
void
);
/**
/**
...
@@ -56,8 +50,4 @@ replay_gain_set_mode_string(const char *p);
...
@@ -56,8 +50,4 @@ replay_gain_set_mode_string(const char *p);
enum
replay_gain_mode
enum
replay_gain_mode
replay_gain_get_real_mode
(
bool
random_mode
);
replay_gain_get_real_mode
(
bool
random_mode
);
#ifdef __cplusplus
}
#endif
#endif
#endif
src/ReplayGainInfo.cxx
View file @
17c6db6c
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
float
float
replay_gain_tuple_scale
(
const
struct
replay_gain_tuple
*
tuple
,
float
preamp
,
float
missing_preamp
,
bool
peak_limit
)
replay_gain_tuple_scale
(
const
struct
replay_gain_tuple
*
tuple
,
float
preamp
,
float
missing_preamp
,
bool
peak_limit
)
...
...
src/
replay_gain_info.h
→
src/
ReplayGainInfo.hxx
View file @
17c6db6c
/*
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
* http://www.musicpd.org
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -17,17 +17,12 @@
...
@@ -17,17 +17,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
*/
#ifndef MPD_REPLAY_GAIN_INFO_H
#ifndef MPD_REPLAY_GAIN_INFO_H
XX
#define MPD_REPLAY_GAIN_INFO_H
#define MPD_REPLAY_GAIN_INFO_H
XX
#include "check.h"
#include "check.h"
#ifdef __cplusplus
#include <cmath>
#include <cmath>
#else
#include <stdbool.h>
#include <math.h>
#endif
enum
replay_gain_mode
{
enum
replay_gain_mode
{
REPLAY_GAIN_AUTO
=
-
2
,
REPLAY_GAIN_AUTO
=
-
2
,
...
@@ -62,17 +57,9 @@ replay_gain_info_init(struct replay_gain_info *info)
...
@@ -62,17 +57,9 @@ replay_gain_info_init(struct replay_gain_info *info)
static
inline
bool
static
inline
bool
replay_gain_tuple_defined
(
const
struct
replay_gain_tuple
*
tuple
)
replay_gain_tuple_defined
(
const
struct
replay_gain_tuple
*
tuple
)
{
{
#ifdef __cplusplus
return
!
std
::
isinf
(
tuple
->
gain
);
return
!
std
::
isinf
(
tuple
->
gain
);
#else
return
!
isinf
(
tuple
->
gain
);
#endif
}
}
#ifdef __cplusplus
extern
"C"
{
#endif
float
float
replay_gain_tuple_scale
(
const
struct
replay_gain_tuple
*
tuple
,
float
preamp
,
float
missing_preamp
,
bool
peak_limit
);
replay_gain_tuple_scale
(
const
struct
replay_gain_tuple
*
tuple
,
float
preamp
,
float
missing_preamp
,
bool
peak_limit
);
...
@@ -83,8 +70,4 @@ replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, flo
...
@@ -83,8 +70,4 @@ replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, flo
void
void
replay_gain_info_complete
(
struct
replay_gain_info
*
info
);
replay_gain_info_complete
(
struct
replay_gain_info
*
info
);
#ifdef __cplusplus
}
#endif
#endif
#endif
src/decoder/FlacMetadata.cxx
View file @
17c6db6c
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagBuilder.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include <glib.h>
#include <glib.h>
...
...
src/decoder/VorbisComments.cxx
View file @
17c6db6c
...
@@ -24,9 +24,10 @@
...
@@ -24,9 +24,10 @@
#include "tag/TagTable.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagBuilder.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
#include <string.h>
#include <string.h>
...
...
src/filter/ReplayGainFilterPlugin.cxx
View file @
17c6db6c
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
#include "FilterInternal.hxx"
#include "FilterInternal.hxx"
#include "FilterRegistry.hxx"
#include "FilterRegistry.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include "
replay_gain_config.h
"
#include "
ReplayGainConfig.hxx
"
#include "MixerControl.hxx"
#include "MixerControl.hxx"
#include "pcm/PcmVolume.hxx"
#include "pcm/PcmVolume.hxx"
#include "pcm/PcmBuffer.hxx"
#include "pcm/PcmBuffer.hxx"
...
...
src/filter/ReplayGainFilterPlugin.hxx
View file @
17c6db6c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#ifndef MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#define MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#define MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
class
Filter
;
class
Filter
;
class
Mixer
;
class
Mixer
;
...
...
src/tag/ApeReplayGain.cxx
View file @
17c6db6c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "config.h"
#include "ApeReplayGain.hxx"
#include "ApeReplayGain.hxx"
#include "ApeLoader.hxx"
#include "ApeLoader.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include <glib.h>
#include <glib.h>
...
...
src/tag/TagRva2.cxx
View file @
17c6db6c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "config.h"
#include "TagRva2.hxx"
#include "TagRva2.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <string.h>
...
...
test/FakeReplayGainConfig.cxx
View file @
17c6db6c
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "
replay_gain_config.h
"
#include "
ReplayGainConfig.hxx
"
float
replay_gain_preamp
=
1.0
;
float
replay_gain_preamp
=
1.0
;
float
replay_gain_missing_preamp
=
1.0
;
float
replay_gain_missing_preamp
=
1.0
;
...
...
test/dump_rva2.cxx
View file @
17c6db6c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "config.h"
#include "tag/TagId3.hxx"
#include "tag/TagId3.hxx"
#include "tag/TagRva2.hxx"
#include "tag/TagRva2.hxx"
#include "
replay_gain_info.h
"
#include "
ReplayGainInfo.hxx
"
#include "ConfigGlobal.hxx"
#include "ConfigGlobal.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
...
...
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