changeset 150:1997ecd9dcb1 trunk

[svn] Add ability to override defaults via .audacious/config until we can get a GUI.
author nenolod
date Thu, 10 Nov 2005 18:25:15 -0800
parents 908ef215f340
children 0a2963adefab
files Plugins/Input/console/Audacious_Driver.cpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp	Thu Nov 10 18:15:39 2005 -0800
+++ b/Plugins/Input/console/Audacious_Driver.cpp	Thu Nov 10 18:25:15 2005 -0800
@@ -263,7 +263,15 @@
 
 static void console_init(void)
 {
+	ConfigFile *cfg;
 
+	cfg = xmms_cfg_open_default_file();
+
+	xmms_cfg_read_int(cfg, "console", "loop_length", &audcfg.loop_length);
+	xmms_cfg_read_boolean(cfg, "console", "resample", &audcfg.resample);
+	xmms_cfg_read_int(cfg, "console", "resample_rate", &audcfg.resample_rate);
+
+	xmms_cfg_free(cfg);
 }
 
 extern "C" void console_aboutbox(void)