Mercurial > audlegacy-plugins
diff src/timidity/xmms-timidity.c @ 2124:b8da6a0b0da2
s/bmp_cfg_/aud_cfg_/g
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Wed, 24 Oct 2007 07:34:02 +0300 |
| parents | 2f2ffbc2d04d |
| children | e5401b6c4665 |
line wrap: on
line diff
--- a/src/timidity/xmms-timidity.c Wed Oct 24 07:32:18 2007 +0300 +++ b/src/timidity/xmms-timidity.c Wed Oct 24 07:34:02 2007 +0300 @@ -90,16 +90,16 @@ xmmstimid_cfg.channels = 2; xmmstimid_cfg.buffer_size = 512; - db = bmp_cfg_db_open(); + db = aud_cfg_db_open(); - if (! bmp_cfg_db_get_string(db, "timidity", "config_file", + if (! aud_cfg_db_get_string(db, "timidity", "config_file", &xmmstimid_cfg.config_file)) xmmstimid_cfg.config_file = g_strdup("/etc/timidity/timidity.cfg"); - bmp_cfg_db_get_int(db, "timidity", "samplerate", &xmmstimid_cfg.rate); - bmp_cfg_db_get_int(db, "timidity", "bits", &xmmstimid_cfg.bits); - bmp_cfg_db_get_int(db, "timidity", "channels", &xmmstimid_cfg.channels); - bmp_cfg_db_close(db); + aud_cfg_db_get_int(db, "timidity", "samplerate", &xmmstimid_cfg.rate); + aud_cfg_db_get_int(db, "timidity", "bits", &xmmstimid_cfg.bits); + aud_cfg_db_get_int(db, "timidity", "channels", &xmmstimid_cfg.channels); + aud_cfg_db_close(db); if (mid_init(xmmstimid_cfg.config_file) != 0) { xmmstimid_initialized = FALSE; @@ -203,18 +203,18 @@ else if (gtk_toggle_button_get_active(xmmstimid_conf_channels_2)) xmmstimid_cfg.channels = 2; - db = bmp_cfg_db_open(); + db = aud_cfg_db_open(); g_free(xmmstimid_cfg.config_file); xmmstimid_cfg.config_file = g_strdup( gtk_entry_get_text(xmmstimid_conf_config_file)); - bmp_cfg_db_set_string(db, "timidity", "config_file", xmmstimid_cfg.config_file); + aud_cfg_db_set_string(db, "timidity", "config_file", xmmstimid_cfg.config_file); - bmp_cfg_db_set_int(db, "timidity", "samplerate", xmmstimid_cfg.rate); - bmp_cfg_db_set_int(db, "timidity", "bits", xmmstimid_cfg.bits); - bmp_cfg_db_set_int(db, "timidity", "channels", xmmstimid_cfg.channels); - bmp_cfg_db_close(db); + aud_cfg_db_set_int(db, "timidity", "samplerate", xmmstimid_cfg.rate); + aud_cfg_db_set_int(db, "timidity", "bits", xmmstimid_cfg.bits); + aud_cfg_db_set_int(db, "timidity", "channels", xmmstimid_cfg.channels); + aud_cfg_db_close(db); gtk_widget_hide(xmmstimid_conf_wnd); }
