Mercurial > audlegacy-plugins
comparison src/alsa/init.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 | 2ebeb7816c5e |
children | 42a5c9d5830b |
comparison
equal
deleted
inserted
replaced
2123:c349bd73af71 | 2124:b8da6a0b0da2 |
---|---|
33 alsa_cfg.period_time = 100; | 33 alsa_cfg.period_time = 100; |
34 alsa_cfg.debug = 0; | 34 alsa_cfg.debug = 0; |
35 alsa_cfg.vol.left = 100; | 35 alsa_cfg.vol.left = 100; |
36 alsa_cfg.vol.right = 100; | 36 alsa_cfg.vol.right = 100; |
37 | 37 |
38 cfgfile = bmp_cfg_db_open(); | 38 cfgfile = aud_cfg_db_open(); |
39 if (!bmp_cfg_db_get_string(cfgfile, "ALSA", "pcm_device", | 39 if (!aud_cfg_db_get_string(cfgfile, "ALSA", "pcm_device", |
40 &alsa_cfg.pcm_device)) | 40 &alsa_cfg.pcm_device)) |
41 alsa_cfg.pcm_device = g_strdup("default"); | 41 alsa_cfg.pcm_device = g_strdup("default"); |
42 g_message("device: %s", alsa_cfg.pcm_device); | 42 g_message("device: %s", alsa_cfg.pcm_device); |
43 if (!bmp_cfg_db_get_string(cfgfile, "ALSA", "mixer_device", | 43 if (!aud_cfg_db_get_string(cfgfile, "ALSA", "mixer_device", |
44 &alsa_cfg.mixer_device)) | 44 &alsa_cfg.mixer_device)) |
45 alsa_cfg.mixer_device = g_strdup("PCM"); | 45 alsa_cfg.mixer_device = g_strdup("PCM"); |
46 bmp_cfg_db_get_int(cfgfile, "ALSA", "mixer_card", &alsa_cfg.mixer_card); | 46 aud_cfg_db_get_int(cfgfile, "ALSA", "mixer_card", &alsa_cfg.mixer_card); |
47 bmp_cfg_db_get_int(cfgfile, "ALSA", "buffer_time", &alsa_cfg.buffer_time); | 47 aud_cfg_db_get_int(cfgfile, "ALSA", "buffer_time", &alsa_cfg.buffer_time); |
48 bmp_cfg_db_get_int(cfgfile, "ALSA", "period_time", &alsa_cfg.period_time); | 48 aud_cfg_db_get_int(cfgfile, "ALSA", "period_time", &alsa_cfg.period_time); |
49 | 49 |
50 bmp_cfg_db_get_bool(cfgfile, "ALSA", "debug", &alsa_cfg.debug); | 50 aud_cfg_db_get_bool(cfgfile, "ALSA", "debug", &alsa_cfg.debug); |
51 bmp_cfg_db_close(cfgfile); | 51 aud_cfg_db_close(cfgfile); |
52 | 52 |
53 if (dlopen("libasound.so.2", RTLD_NOW | RTLD_GLOBAL) == NULL) | 53 if (dlopen("libasound.so.2", RTLD_NOW | RTLD_GLOBAL) == NULL) |
54 { | 54 { |
55 g_message("Cannot load alsa library: %s", dlerror()); | 55 g_message("Cannot load alsa library: %s", dlerror()); |
56 /* FIXME, this plugin wont work... */ | 56 /* FIXME, this plugin wont work... */ |