Commit 17c6db6c authored by Max Kellermann's avatar Max Kellermann

replay_gain_*.h: rename to *.hxx

parent 86316b18
......@@ -62,8 +62,6 @@ mpd_headers = \
src/open.h \
src/Playlist.hxx \
src/poison.h \
src/replay_gain_config.h \
src/replay_gain_info.h \
src/TimePrint.cxx src/TimePrint.hxx \
src/Timer.hxx
......@@ -192,8 +190,8 @@ src_mpd_SOURCES = \
src/Queue.cxx src/Queue.hxx \
src/QueuePrint.cxx src/QueuePrint.hxx \
src/QueueSave.cxx src/QueueSave.hxx \
src/ReplayGainConfig.cxx \
src/ReplayGainInfo.cxx \
src/ReplayGainConfig.cxx src/ReplayGainConfig.hxx \
src/ReplayGainInfo.cxx src/ReplayGainInfo.hxx \
src/SignalHandlers.cxx src/SignalHandlers.hxx \
src/Song.cxx src/Song.hxx \
src/SongUpdate.cxx \
......
......@@ -21,7 +21,7 @@
#include "DecoderAPI.hxx"
#include "DecoderError.hxx"
#include "AudioConfig.hxx"
#include "replay_gain_config.h"
#include "ReplayGainConfig.hxx"
#include "MusicChunk.hxx"
#include "MusicBuffer.hxx"
#include "MusicPipe.hxx"
......
......@@ -30,7 +30,7 @@
#include "check.h"
#include "DecoderCommand.hxx"
#include "DecoderPlugin.hxx"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include "tag/Tag.hxx"
#include "AudioFormat.hxx"
#include "ConfigData.hxx"
......
......@@ -22,7 +22,7 @@
#include "DecoderCommand.hxx"
#include "pcm/PcmConvert.hxx"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
struct input_stream;
struct Tag;
......
......@@ -39,7 +39,7 @@
#include "Volume.hxx"
#include "OutputAll.hxx"
#include "tag/TagConfig.hxx"
#include "replay_gain_config.h"
#include "ReplayGainConfig.hxx"
#include "Idle.hxx"
#include "SignalHandlers.hxx"
#include "Log.hxx"
......
......@@ -20,7 +20,7 @@
#ifndef MPD_MUSIC_CHUNK_HXX
#define MPD_MUSIC_CHUNK_HXX
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#ifndef NDEBUG
#include "AudioFormat.hxx"
......
......@@ -26,7 +26,7 @@
#ifndef OUTPUT_ALL_H
#define OUTPUT_ALL_H
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include "gcc.h"
struct AudioFormat;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_OUTPUT_CONTROL_HXX
#define MPD_OUTPUT_CONTROL_HXX
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include <stddef.h>
......
......@@ -29,14 +29,8 @@
#include "Partition.hxx"
#include "protocol/Result.hxx"
#include "protocol/ArgParser.hxx"
extern "C" {
#include "AudioFormat.hxx"
}
#include "replay_gain_config.h"
#include <errno.h>
#include "ReplayGainConfig.hxx"
#define COMMAND_STATUS_STATE "state"
#define COMMAND_STATUS_REPEAT "repeat"
......
......@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "replay_gain_config.h"
#include "ReplayGainConfig.hxx"
#include "Idle.hxx"
#include "ConfigData.hxx"
#include "ConfigGlobal.hxx"
......
/*
* Copyright (C) 2003-2011 The Music Player Daemon Project
* Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
......@@ -17,23 +17,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_REPLAY_GAIN_CONFIG_H
#define MPD_REPLAY_GAIN_CONFIG_H
#ifndef MPD_REPLAY_GAIN_CONFIG_HXX
#define MPD_REPLAY_GAIN_CONFIG_HXX
#include "check.h"
#include "replay_gain_info.h"
#include <stdbool.h>
#include "ReplayGainInfo.hxx"
extern enum replay_gain_mode replay_gain_mode;
extern float replay_gain_preamp;
extern float replay_gain_missing_preamp;
extern bool replay_gain_limit;
#ifdef __cplusplus
extern "C" {
#endif
void replay_gain_global_init(void);
/**
......@@ -56,8 +50,4 @@ replay_gain_set_mode_string(const char *p);
enum replay_gain_mode
replay_gain_get_real_mode(bool random_mode);
#ifdef __cplusplus
}
#endif
#endif
......@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
float
replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, float missing_preamp, bool peak_limit)
......
/*
* Copyright (C) 2003-2011 The Music Player Daemon Project
* Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
......@@ -17,17 +17,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_REPLAY_GAIN_INFO_H
#define MPD_REPLAY_GAIN_INFO_H
#ifndef MPD_REPLAY_GAIN_INFO_HXX
#define MPD_REPLAY_GAIN_INFO_HXX
#include "check.h"
#ifdef __cplusplus
#include <cmath>
#else
#include <stdbool.h>
#include <math.h>
#endif
enum replay_gain_mode {
REPLAY_GAIN_AUTO = -2,
......@@ -62,17 +57,9 @@ replay_gain_info_init(struct replay_gain_info *info)
static inline bool
replay_gain_tuple_defined(const struct replay_gain_tuple *tuple)
{
#ifdef __cplusplus
return !std::isinf(tuple->gain);
#else
return !isinf(tuple->gain);
#endif
}
#ifdef __cplusplus
extern "C" {
#endif
float
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
void
replay_gain_info_complete(struct replay_gain_info *info);
#ifdef __cplusplus
}
#endif
#endif
......@@ -24,7 +24,7 @@
#include "tag/TagHandler.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagBuilder.hxx"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include <glib.h>
......
......@@ -24,9 +24,10 @@
#include "tag/TagTable.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagBuilder.hxx"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include <glib.h>
#include <assert.h>
#include <stddef.h>
#include <string.h>
......
......@@ -23,8 +23,8 @@
#include "FilterInternal.hxx"
#include "FilterRegistry.hxx"
#include "AudioFormat.hxx"
#include "replay_gain_info.h"
#include "replay_gain_config.h"
#include "ReplayGainInfo.hxx"
#include "ReplayGainConfig.hxx"
#include "MixerControl.hxx"
#include "pcm/PcmVolume.hxx"
#include "pcm/PcmBuffer.hxx"
......
......@@ -20,7 +20,7 @@
#ifndef MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#define MPD_REPLAY_GAIN_FILTER_PLUGIN_HXX
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
class Filter;
class Mixer;
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "ApeReplayGain.hxx"
#include "ApeLoader.hxx"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include <glib.h>
......
......@@ -19,7 +19,7 @@
#include "config.h"
#include "TagRva2.hxx"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include <stdint.h>
#include <string.h>
......
......@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "replay_gain_config.h"
#include "ReplayGainConfig.hxx"
float replay_gain_preamp = 1.0;
float replay_gain_missing_preamp = 1.0;
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "tag/TagId3.hxx"
#include "tag/TagRva2.hxx"
#include "replay_gain_info.h"
#include "ReplayGainInfo.hxx"
#include "ConfigGlobal.hxx"
#include "util/Error.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment