Mercurial > audlegacy-plugins
comparison src/console/Audacious_Config.cxx @ 2523:769e17da93dd
Replaced s/ConfigDb/mcs_handle_t/g, as per changes in the core.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 09 Apr 2008 15:48:36 +0300 |
parents | ed6c81bd9016 |
children | 3134a0987162 |
comparison
equal
deleted
inserted
replaced
2522:7b5b4a51ea6e | 2523:769e17da93dd |
---|---|
18 | 18 |
19 // TODO: add UI for echo | 19 // TODO: add UI for echo |
20 | 20 |
21 void console_cfg_load( void ) | 21 void console_cfg_load( void ) |
22 { | 22 { |
23 ConfigDb *db = aud_cfg_db_open(); | 23 mcs_handle_t *db = aud_cfg_db_open(); |
24 aud_cfg_db_get_int(db, "console", "loop_length", &audcfg.loop_length); | 24 aud_cfg_db_get_int(db, "console", "loop_length", &audcfg.loop_length); |
25 aud_cfg_db_get_bool(db, "console", "resample", &audcfg.resample); | 25 aud_cfg_db_get_bool(db, "console", "resample", &audcfg.resample); |
26 aud_cfg_db_get_int(db, "console", "resample_rate", &audcfg.resample_rate); | 26 aud_cfg_db_get_int(db, "console", "resample_rate", &audcfg.resample_rate); |
27 aud_cfg_db_get_int(db, "console", "treble", &audcfg.treble); | 27 aud_cfg_db_get_int(db, "console", "treble", &audcfg.treble); |
28 aud_cfg_db_get_int(db, "console", "bass", &audcfg.bass); | 28 aud_cfg_db_get_int(db, "console", "bass", &audcfg.bass); |
33 } | 33 } |
34 | 34 |
35 | 35 |
36 void console_cfg_save( void ) | 36 void console_cfg_save( void ) |
37 { | 37 { |
38 ConfigDb *db = aud_cfg_db_open(); | 38 mcs_handle_t *db = aud_cfg_db_open(); |
39 aud_cfg_db_set_int(db, "console", "loop_length", audcfg.loop_length); | 39 aud_cfg_db_set_int(db, "console", "loop_length", audcfg.loop_length); |
40 aud_cfg_db_set_bool(db, "console", "resample", audcfg.resample); | 40 aud_cfg_db_set_bool(db, "console", "resample", audcfg.resample); |
41 aud_cfg_db_set_int(db, "console", "resample_rate", audcfg.resample_rate); | 41 aud_cfg_db_set_int(db, "console", "resample_rate", audcfg.resample_rate); |
42 aud_cfg_db_set_int(db, "console", "treble", audcfg.treble); | 42 aud_cfg_db_set_int(db, "console", "treble", audcfg.treble); |
43 aud_cfg_db_set_int(db, "console", "bass", audcfg.bass); | 43 aud_cfg_db_set_int(db, "console", "bass", audcfg.bass); |