summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 21:52:15 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 21:52:15 +0200
commit5d74b1efefb5d992096c2cdfeceb8281114bbd0c (patch)
treeac5a98cb25b0bd8a96e50f234bfa60bc8cf9b4c2 /test
parentd3b5574d7aac0a7f2d4eb785facfad9f37c15dd5 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/read_mixer.c18
1 files changed, 18 insertions, 0 deletions
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 <glib.h>
@@ -26,6 +28,22 @@
#include <string.h>
#include <unistd.h>
+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;