aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-02-14 17:04:39 +0100
committerMax Kellermann <max@duempel.org>2010-02-17 07:23:13 +0100
commit752dfb3d95482c562e5d24c6ea839c4815de9a6d (patch)
tree46b62f26c4c68ebe81b72b9ca30366ffa14af1a5 /test
parent5e0117b4441f257fcb1aab48b42a787567ebcbe6 (diff)
downloadmpd-752dfb3d95482c562e5d24c6ea839c4815de9a6d.tar.gz
mpd-752dfb3d95482c562e5d24c6ea839c4815de9a6d.tar.xz
mpd-752dfb3d95482c562e5d24c6ea839c4815de9a6d.zip
replay_gain: reimplement as a filter plugin
Apply the replay gain in the output thread. This means a new setting will be active instantly, without going through the whole music pipe. And we might have different replay gain settings for each audio output device.
Diffstat (limited to 'test')
-rw-r--r--test/run_filter.c6
-rw-r--r--test/run_output.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/test/run_filter.c b/test/run_filter.c
index 9b4d79510..dd22312d5 100644
--- a/test/run_filter.c
+++ b/test/run_filter.c
@@ -23,6 +23,7 @@
#include "audio_format.h"
#include "filter_plugin.h"
#include "pcm_volume.h"
+#include "idle.h"
#include <glib.h>
@@ -31,6 +32,11 @@
#include <errno.h>
#include <unistd.h>
+void
+idle_add(G_GNUC_UNUSED unsigned flags)
+{
+}
+
static void
my_log_func(const gchar *log_domain, G_GNUC_UNUSED GLogLevelFlags log_level,
const gchar *message, G_GNUC_UNUSED gpointer user_data)
diff --git a/test/run_output.c b/test/run_output.c
index 774ce99f9..6e0fffbd0 100644
--- a/test/run_output.c
+++ b/test/run_output.c
@@ -26,6 +26,7 @@
#include "filter_registry.h"
#include "pcm_convert.h"
#include "event_pipe.h"
+#include "idle.h"
#include <glib.h>
@@ -34,6 +35,11 @@
#include <unistd.h>
void
+idle_add(G_GNUC_UNUSED unsigned flags)
+{
+}
+
+void
event_pipe_emit(G_GNUC_UNUSED enum pipe_event event)
{
}