diff options
author | Albin Eldstål-Damlin <laeder.keps@gmail.com> | 2009-12-13 22:49:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-14 17:56:31 +0100 |
commit | a4fbf772c190035ba41a1942dafe0fbc372ba874 (patch) | |
tree | f7d21d00dd81783885097a43ca0c81b31863d938 /src/output_init.c | |
parent | e28c5a0beb86de7d45135443116205df509b8664 (diff) | |
download | mpd-a4fbf772c190035ba41a1942dafe0fbc372ba874.tar.gz mpd-a4fbf772c190035ba41a1942dafe0fbc372ba874.tar.xz mpd-a4fbf772c190035ba41a1942dafe0fbc372ba874.zip |
Initial filter chain and filter configuration for outputs.
Diffstat (limited to '')
-rw-r--r-- | src/output_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/output_init.c b/src/output_init.c index a1b79c994..6ca190fd0 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -41,6 +41,7 @@ #define AUDIO_OUTPUT_TYPE "type" #define AUDIO_OUTPUT_NAME "name" #define AUDIO_OUTPUT_FORMAT "format" +#define AUDIO_FILTERS "filters" static const struct audio_output_plugin * audio_output_detect(GError **error) @@ -190,6 +191,9 @@ audio_output_init(struct audio_output *ao, const struct config_param *param, ao->filter = filter_chain_new(); assert(ao->filter != NULL); + filter_chain_parse(ao->filter, + config_get_block_string(param, AUDIO_FILTERS, "") + ); ao->thread = NULL; ao->command = AO_COMMAND_NONE; |