aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-02-16 08:55:37 +0100
committerMax Kellermann <max@duempel.org>2010-02-17 08:14:07 +0100
commit96493e0333404ddea739a08e1e3ead8dcb6f836c (patch)
tree5c953ea3a3b5f7f22174e6046a6b107390524438 /test
parent48b49e230352de10bb3f66a1c85d367dade52001 (diff)
downloadmpd-96493e0333404ddea739a08e1e3ead8dcb6f836c.tar.gz
mpd-96493e0333404ddea739a08e1e3ead8dcb6f836c.tar.xz
mpd-96493e0333404ddea739a08e1e3ead8dcb6f836c.zip
replay_gain: optionally use hardware mixer to apply replay gain
Add an option for each audio output which enables the use of the hardware mixer, instead of the software volume code. This is hardware specific, and assumes linear volume control. This is not the case for hardware mixers which were tested, making this patch somewhat useless, but we will use it to experiment with the settings, to find a good solution.
Diffstat (limited to 'test')
-rw-r--r--test/run_filter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/run_filter.c b/test/run_filter.c
index dd22312d5..f9d628aeb 100644
--- a/test/run_filter.c
+++ b/test/run_filter.c
@@ -24,6 +24,7 @@
#include "filter_plugin.h"
#include "pcm_volume.h"
#include "idle.h"
+#include "mixer_control.h"
#include <glib.h>
@@ -37,6 +38,13 @@ idle_add(G_GNUC_UNUSED unsigned flags)
{
}
+bool
+mixer_set_volume(G_GNUC_UNUSED struct mixer *mixer,
+ G_GNUC_UNUSED unsigned volume, G_GNUC_UNUSED GError **error_r)
+{
+ return true;
+}
+
static void
my_log_func(const gchar *log_domain, G_GNUC_UNUSED GLogLevelFlags log_level,
const gchar *message, G_GNUC_UNUSED gpointer user_data)