Mercurial > audlegacy-plugins
comparison src/CoreAudio/init.c @ 3069:372ef3b764fd
port to new API
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 24 Apr 2009 09:58:54 -0500 |
parents | 3134a0987162 |
children |
comparison
equal
deleted
inserted
replaced
3068:31b1dbef64c2 | 3069:372ef3b764fd |
---|---|
20 | 20 |
21 OSXConfig osx_cfg; | 21 OSXConfig osx_cfg; |
22 | 22 |
23 extern float left_volume, right_volume; | 23 extern float left_volume, right_volume; |
24 | 24 |
25 void osx_init(void) | 25 OutputPluginInitStatus osx_init(void) |
26 { | 26 { |
27 mcs_handle_t *cfgfile; | 27 mcs_handle_t *cfgfile; |
28 | 28 |
29 left_volume = 1.0; | 29 left_volume = 1.0; |
30 right_volume = 1.0; | 30 right_volume = 1.0; |
50 aud_cfg_db_get_string(cfgfile, "OSX", "alt_audio_device", &osx_cfg.alt_audio_device); | 50 aud_cfg_db_get_string(cfgfile, "OSX", "alt_audio_device", &osx_cfg.alt_audio_device); |
51 aud_cfg_db_get_bool(cfgfile, "OSX", "use_alt_mixer_device", &osx_cfg.use_alt_mixer_device); | 51 aud_cfg_db_get_bool(cfgfile, "OSX", "use_alt_mixer_device", &osx_cfg.use_alt_mixer_device); |
52 aud_cfg_db_get_string(cfgfile, "OSX", "alt_mixer_device", &osx_cfg.alt_mixer_device); | 52 aud_cfg_db_get_string(cfgfile, "OSX", "alt_mixer_device", &osx_cfg.alt_mixer_device); |
53 aud_cfg_db_close(cfgfile); | 53 aud_cfg_db_close(cfgfile); |
54 } | 54 } |
55 | |
56 return OUTPUT_PLUGIN_INIT_FOUND_DEVICES; | |
55 } | 57 } |