From 752dfb3d95482c562e5d24c6ea839c4815de9a6d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 14 Feb 2010 17:04:39 +0100 Subject: 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. --- test/run_filter.c | 6 ++++++ test/run_output.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'test') 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 @@ -31,6 +32,11 @@ #include #include +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 @@ -33,6 +34,11 @@ #include #include +void +idle_add(G_GNUC_UNUSED unsigned flags) +{ +} + void event_pipe_emit(G_GNUC_UNUSED enum pipe_event event) { -- cgit v1.2.3