summaryrefslogtreecommitdiff
path: root/src/mixer_all.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 21:52:29 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 21:52:29 +0200
commitda8095db546544bb9fe3a455ef5742bfef9c2f4f (patch)
treea9ba7360e17169970b0f1076ae2c78f80247e267 /src/mixer_all.h
parent5d74b1efefb5d992096c2cdfeceb8281114bbd0c (diff)
mixer_all: added mixer_all_set_software_volume()
The special-purpose function is used for saving/restore the software volume control to the state file.
Diffstat (limited to 'src/mixer_all.h')
-rw-r--r--src/mixer_all.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mixer_all.h b/src/mixer_all.h
index e7c9eecc8..ebe8fed68 100644
--- a/src/mixer_all.h
+++ b/src/mixer_all.h
@@ -43,4 +43,20 @@ mixer_all_get_volume(void);
bool
mixer_all_set_volume(unsigned volume);
+/**
+ * Similar to mixer_all_get_volume(), but gets the volume only for
+ * software mixers. See #software_mixer_plugin. This function fails
+ * if no software mixer is configured.
+ */
+int
+mixer_all_get_software_volume(void);
+
+/**
+ * Similar to mixer_all_set_volume(), but sets the volume only for
+ * software mixers. See #software_mixer_plugin. This function cannot
+ * fail, because the underlying software mixers cannot fail either.
+ */
+void
+mixer_all_set_software_volume(unsigned volume);
+
#endif