Mercurial > audlegacy-plugins
comparison src/console/Audacious_Config.cxx @ 2124:b8da6a0b0da2
s/bmp_cfg_/aud_cfg_/g
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 24 Oct 2007 07:34:02 +0300 |
parents | 7ada85b64e90 |
children | ed6c81bd9016 |
comparison
equal
deleted
inserted
replaced
2123:c349bd73af71 | 2124:b8da6a0b0da2 |
---|---|
19 | 19 |
20 // TODO: add UI for echo | 20 // TODO: add UI for echo |
21 | 21 |
22 void console_cfg_load( void ) | 22 void console_cfg_load( void ) |
23 { | 23 { |
24 ConfigDb *db = bmp_cfg_db_open(); | 24 ConfigDb *db = aud_cfg_db_open(); |
25 bmp_cfg_db_get_int(db, "console", "loop_length", &audcfg.loop_length); | 25 aud_cfg_db_get_int(db, "console", "loop_length", &audcfg.loop_length); |
26 bmp_cfg_db_get_bool(db, "console", "resample", &audcfg.resample); | 26 aud_cfg_db_get_bool(db, "console", "resample", &audcfg.resample); |
27 bmp_cfg_db_get_int(db, "console", "resample_rate", &audcfg.resample_rate); | 27 aud_cfg_db_get_int(db, "console", "resample_rate", &audcfg.resample_rate); |
28 bmp_cfg_db_get_int(db, "console", "treble", &audcfg.treble); | 28 aud_cfg_db_get_int(db, "console", "treble", &audcfg.treble); |
29 bmp_cfg_db_get_int(db, "console", "bass", &audcfg.bass); | 29 aud_cfg_db_get_int(db, "console", "bass", &audcfg.bass); |
30 bmp_cfg_db_get_bool(db, "console", "ignore_spc_length", &audcfg.ignore_spc_length); | 30 aud_cfg_db_get_bool(db, "console", "ignore_spc_length", &audcfg.ignore_spc_length); |
31 bmp_cfg_db_get_int(db, "console", "echo", &audcfg.echo); | 31 aud_cfg_db_get_int(db, "console", "echo", &audcfg.echo); |
32 bmp_cfg_db_get_bool(db, "console", "inc_spc_reverb", &audcfg.inc_spc_reverb); | 32 aud_cfg_db_get_bool(db, "console", "inc_spc_reverb", &audcfg.inc_spc_reverb); |
33 bmp_cfg_db_close(db); | 33 aud_cfg_db_close(db); |
34 } | 34 } |
35 | 35 |
36 | 36 |
37 void console_cfg_save( void ) | 37 void console_cfg_save( void ) |
38 { | 38 { |
39 ConfigDb *db = bmp_cfg_db_open(); | 39 ConfigDb *db = aud_cfg_db_open(); |
40 bmp_cfg_db_set_int(db, "console", "loop_length", audcfg.loop_length); | 40 aud_cfg_db_set_int(db, "console", "loop_length", audcfg.loop_length); |
41 bmp_cfg_db_set_bool(db, "console", "resample", audcfg.resample); | 41 aud_cfg_db_set_bool(db, "console", "resample", audcfg.resample); |
42 bmp_cfg_db_set_int(db, "console", "resample_rate", audcfg.resample_rate); | 42 aud_cfg_db_set_int(db, "console", "resample_rate", audcfg.resample_rate); |
43 bmp_cfg_db_set_int(db, "console", "treble", audcfg.treble); | 43 aud_cfg_db_set_int(db, "console", "treble", audcfg.treble); |
44 bmp_cfg_db_set_int(db, "console", "bass", audcfg.bass); | 44 aud_cfg_db_set_int(db, "console", "bass", audcfg.bass); |
45 bmp_cfg_db_set_bool(db, "console", "ignore_spc_length", audcfg.ignore_spc_length); | 45 aud_cfg_db_set_bool(db, "console", "ignore_spc_length", audcfg.ignore_spc_length); |
46 bmp_cfg_db_set_int(db, "console", "echo", audcfg.echo); | 46 aud_cfg_db_set_int(db, "console", "echo", audcfg.echo); |
47 bmp_cfg_db_set_bool(db, "console", "inc_spc_reverb", audcfg.inc_spc_reverb); | 47 aud_cfg_db_set_bool(db, "console", "inc_spc_reverb", audcfg.inc_spc_reverb); |
48 bmp_cfg_db_close(db); | 48 aud_cfg_db_close(db); |
49 } | 49 } |
50 | 50 |
51 | 51 |
52 // CONFIGURATION PANEL (GTK+2 GUI) | 52 // CONFIGURATION PANEL (GTK+2 GUI) |
53 | 53 |