aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/software_mixer_plugin.h
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 /src/mixer/software_mixer_plugin.h
parentd3b5574d7aac0a7f2d4eb785facfad9f37c15dd5 (diff)
downloadmpd-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 'src/mixer/software_mixer_plugin.h')
-rw-r--r--src/mixer/software_mixer_plugin.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mixer/software_mixer_plugin.h b/src/mixer/software_mixer_plugin.h
new file mode 100644
index 000000000..a59f7edeb
--- /dev/null
+++ b/src/mixer/software_mixer_plugin.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2003-2009 The Music Player Daemon Project
+ * http://www.musicpd.org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef SOFTWARE_MIXER_PLUGIN_H
+#define SOFTWARE_MIXER_PLUGIN_H
+
+struct mixer;
+struct filter;
+
+/**
+ * Returns the (volume) filter associated with this mixer. All users
+ * of this mixer plugin should install this filter.
+ */
+struct filter *
+software_mixer_get_filter(struct mixer *mixer);
+
+#endif