diff options
author | Max Kellermann <max@duempel.org> | 2009-07-06 21:52:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-06 21:52:15 +0200 |
commit | 5d74b1efefb5d992096c2cdfeceb8281114bbd0c (patch) | |
tree | ac5a98cb25b0bd8a96e50f234bfa60bc8cf9b4c2 /test | |
parent | d3b5574d7aac0a7f2d4eb785facfad9f37c15dd5 (diff) | |
download | mpd-5d74b1efefb5d992096c2cdfeceb8281114bbd0c.tar.gz mpd-5d74b1efefb5d992096c2cdfeceb8281114bbd0c.tar.xz mpd-5d74b1efefb5d992096c2cdfeceb8281114bbd0c.zip |
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.c | 18 |
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; |