Commit 44d260f9 authored by Max Kellermann's avatar Max Kellermann

replay_gain_*: convert to C++

parent 07249fc3
...@@ -282,8 +282,8 @@ src_mpd_SOURCES = \ ...@@ -282,8 +282,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/replay_gain_config.c \ src/ReplayGainConfig.cxx \
src/replay_gain_info.c \ src/ReplayGainInfo.cxx \
src/sig_handlers.c \ src/sig_handlers.c \
src/Song.cxx \ src/Song.cxx \
src/SongUpdate.cxx \ src/SongUpdate.cxx \
...@@ -1102,7 +1102,7 @@ test_DumpPlaylist_SOURCES = test/DumpPlaylist.cxx \ ...@@ -1102,7 +1102,7 @@ test_DumpPlaylist_SOURCES = test/DumpPlaylist.cxx \
if HAVE_FLAC if HAVE_FLAC
test_DumpPlaylist_SOURCES += \ test_DumpPlaylist_SOURCES += \
src/replay_gain_info.c \ src/ReplayGainInfo.cxx \
src/decoder/FLACMetaData.cxx src/decoder/FLACMetaData.cxx
endif endif
...@@ -1119,7 +1119,7 @@ test_run_decoder_SOURCES = test/run_decoder.c \ ...@@ -1119,7 +1119,7 @@ test_run_decoder_SOURCES = test/run_decoder.c \
src/io_thread.c src/io_thread.h \ 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/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/tag.c src/tag_pool.c src/tag_handler.c \
src/replay_gain_info.c \ src/ReplayGainInfo.cxx \
src/uri.c \ src/uri.c \
src/fd_util.c \ src/fd_util.c \
src/audio_check.c \ src/audio_check.c \
...@@ -1141,7 +1141,7 @@ test_read_tags_SOURCES = test/read_tags.c \ ...@@ -1141,7 +1141,7 @@ test_read_tags_SOURCES = test/read_tags.c \
src/io_thread.c src/io_thread.h \ 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/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/tag.c src/tag_pool.c src/tag_handler.c \
src/replay_gain_info.c \ src/ReplayGainInfo.cxx \
src/uri.c \ src/uri.c \
src/fd_util.c \ src/fd_util.c \
src/audio_check.c \ src/audio_check.c \
...@@ -1169,8 +1169,8 @@ test_run_filter_SOURCES = test/run_filter.c \ ...@@ -1169,8 +1169,8 @@ test_run_filter_SOURCES = test/run_filter.c \
src/audio_check.c \ src/audio_check.c \
src/audio_format.c \ src/audio_format.c \
src/audio_parser.c \ src/audio_parser.c \
src/replay_gain_config.c \ src/ReplayGainConfig.cxx \
src/replay_gain_info.c \ src/ReplayGainInfo.cxx \
src/AudioCompress/compress.c src/AudioCompress/compress.c
if ENABLE_DESPOTIFY if ENABLE_DESPOTIFY
...@@ -1280,8 +1280,8 @@ test_run_output_SOURCES = test/run_output.cxx \ ...@@ -1280,8 +1280,8 @@ test_run_output_SOURCES = test/run_output.cxx \
src/filter_plugin.c \ src/filter_plugin.c \
src/filter_config.c \ src/filter_config.c \
src/AudioCompress/compress.c \ src/AudioCompress/compress.c \
src/replay_gain_info.c \ src/ReplayGainInfo.cxx \
src/replay_gain_config.c \ src/ReplayGainConfig.cxx \
src/fd_util.c \ src/fd_util.c \
src/server_socket.c src/server_socket.c
......
...@@ -18,10 +18,14 @@ ...@@ -18,10 +18,14 @@
*/ */
#include "config.h" #include "config.h"
extern "C" {
#include "replay_gain_config.h" #include "replay_gain_config.h"
#include "Playlist.hxx"
#include "conf.h" #include "conf.h"
#include "idle.h" #include "idle.h"
}
#include "Playlist.hxx"
#include "mpd_error.h" #include "mpd_error.h"
#include <glib.h> #include <glib.h>
......
/* /*
* Copyright (C) 2003-2011 The Music Player Daemon Project * Copyright (C) 2003-2013 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
...@@ -18,7 +18,10 @@ ...@@ -18,7 +18,10 @@
*/ */
#include "config.h" #include "config.h"
extern "C" {
#include "replay_gain_info.h" #include "replay_gain_info.h"
}
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)
......
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