From 5d74b1efefb5d992096c2cdfeceb8281114bbd0c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Jul 2009 21:52:15 +0200 Subject: mixer/software: new mixer which controls filter/volume This mixer plugin may be used instead of the traditional global software mixer. It integrates with the "volume" filter plugin, and can control the software volume of an audio output which has no hardware mixer. --- test/read_mixer.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/read_mixer.c') diff --git a/test/read_mixer.c b/test/read_mixer.c index be6864ba1..bbfb23687 100644 --- a/test/read_mixer.c +++ b/test/read_mixer.c @@ -19,6 +19,8 @@ #include "mixer_control.h" #include "mixer_list.h" +#include "filter_registry.h" +#include "pcm_volume.h" #include @@ -26,6 +28,22 @@ #include #include +const struct filter_plugin * +filter_plugin_by_name(G_GNUC_UNUSED const char *name) +{ + assert(false); + return NULL; +} + +bool +pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length, + G_GNUC_UNUSED const struct audio_format *format, + G_GNUC_UNUSED int volume) +{ + assert(false); + return false; +} + int main(int argc, G_GNUC_UNUSED char **argv) { struct mixer *mixer; -- cgit v1.2.3