Mercurial > audlegacy-plugins
diff src/OSS4/OSS4.c @ 1244:d0f1e147cf62
now it saves VMIX volume between sessions
author | Cristi Magherusan <majeru@atheme-project.org> |
---|---|
date | Thu, 12 Jul 2007 18:21:23 +0300 |
parents | 2a722c3ccd9e |
children | a18b7cdc505d |
line wrap: on
line diff
--- a/src/OSS4/OSS4.c Thu Jul 12 17:51:36 2007 +0300 +++ b/src/OSS4/OSS4.c Thu Jul 12 18:21:23 2007 +0300 @@ -24,6 +24,7 @@ #include <glib.h> #include <audacious/i18n.h> #include <stdlib.h> +#include <audacious/configdb.h> OutputPlugin oss_op = { NULL, @@ -53,6 +54,11 @@ void oss_cleanup(void) { + ConfigDb *db; + db = bmp_cfg_db_open(); + bmp_cfg_db_set_int(db, "OSS", "saved_volume", vol); + bmp_cfg_db_close(db); + if (oss_cfg.alt_audio_device) { free(oss_cfg.alt_audio_device); oss_cfg.alt_audio_device = NULL; @@ -61,5 +67,5 @@ if (oss_cfg.alt_mixer_device) { free(oss_cfg.alt_mixer_device); oss_cfg.alt_mixer_device = NULL; - } + } }