aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am18
-rw-r--r--src/ReplayGainConfig.cxx (renamed from src/replay_gain_config.c)6
-rw-r--r--src/ReplayGainInfo.cxx (renamed from src/replay_gain_info.c)5
3 files changed, 18 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index 387100df..47e66561 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -282,8 +282,8 @@ src_mpd_SOURCES = \
src/Queue.cxx src/Queue.hxx \
src/QueuePrint.cxx src/QueuePrint.hxx \
src/QueueSave.cxx src/QueueSave.hxx \
- src/replay_gain_config.c \
- src/replay_gain_info.c \
+ src/ReplayGainConfig.cxx \
+ src/ReplayGainInfo.cxx \
src/sig_handlers.c \
src/Song.cxx \
src/SongUpdate.cxx \
@@ -1102,7 +1102,7 @@ test_DumpPlaylist_SOURCES = test/DumpPlaylist.cxx \
if HAVE_FLAC
test_DumpPlaylist_SOURCES += \
- src/replay_gain_info.c \
+ src/ReplayGainInfo.cxx \
src/decoder/FLACMetaData.cxx
endif
@@ -1119,7 +1119,7 @@ test_run_decoder_SOURCES = test/run_decoder.c \
src/io_thread.c src/io_thread.h \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c src/log.c \
src/tag.c src/tag_pool.c src/tag_handler.c \
- src/replay_gain_info.c \
+ src/ReplayGainInfo.cxx \
src/uri.c \
src/fd_util.c \
src/audio_check.c \
@@ -1141,7 +1141,7 @@ test_read_tags_SOURCES = test/read_tags.c \
src/io_thread.c src/io_thread.h \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c src/log.c \
src/tag.c src/tag_pool.c src/tag_handler.c \
- src/replay_gain_info.c \
+ src/ReplayGainInfo.cxx \
src/uri.c \
src/fd_util.c \
src/audio_check.c \
@@ -1169,8 +1169,8 @@ test_run_filter_SOURCES = test/run_filter.c \
src/audio_check.c \
src/audio_format.c \
src/audio_parser.c \
- src/replay_gain_config.c \
- src/replay_gain_info.c \
+ src/ReplayGainConfig.cxx \
+ src/ReplayGainInfo.cxx \
src/AudioCompress/compress.c
if ENABLE_DESPOTIFY
@@ -1280,8 +1280,8 @@ test_run_output_SOURCES = test/run_output.cxx \
src/filter_plugin.c \
src/filter_config.c \
src/AudioCompress/compress.c \
- src/replay_gain_info.c \
- src/replay_gain_config.c \
+ src/ReplayGainInfo.cxx \
+ src/ReplayGainConfig.cxx \
src/fd_util.c \
src/server_socket.c
diff --git a/src/replay_gain_config.c b/src/ReplayGainConfig.cxx
index deaf2b5f..4d3e2f29 100644
--- a/src/replay_gain_config.c
+++ b/src/ReplayGainConfig.cxx
@@ -18,10 +18,14 @@
*/
#include "config.h"
+
+extern "C" {
#include "replay_gain_config.h"
-#include "Playlist.hxx"
#include "conf.h"
#include "idle.h"
+}
+
+#include "Playlist.hxx"
#include "mpd_error.h"
#include <glib.h>
diff --git a/src/replay_gain_info.c b/src/ReplayGainInfo.cxx
index 1f09e7a1..5e5e4ab4 100644
--- a/src/replay_gain_info.c
+++ b/src/ReplayGainInfo.cxx
@@ -1,5 +1,5 @@
/*
- * 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
@@ -18,7 +18,10 @@
*/
#include "config.h"
+
+extern "C" {
#include "replay_gain_info.h"
+}
float
replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, float missing_preamp, bool peak_limit)