From da8095db546544bb9fe3a455ef5742bfef9c2f4f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Jul 2009 21:52:29 +0200 Subject: 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. --- src/mixer_all.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mixer_all.h') 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 -- cgit v1.2.3