# HG changeset patch # User William Pitcock # Date 1240585134 18000 # Node ID 372ef3b764fdcfece4c38cfdfbb68776955ffa3f # Parent 31b1dbef64c26f60a404f29398cc2d3206fc85a9 port to new API diff -r 31b1dbef64c2 -r 372ef3b764fd src/CoreAudio/coreaudio.c --- a/src/CoreAudio/coreaudio.c Fri Apr 24 09:21:24 2009 -0500 +++ b/src/CoreAudio/coreaudio.c Fri Apr 24 09:58:54 2009 -0500 @@ -39,6 +39,7 @@ .buffer_playing = osx_playing, .output_time = osx_get_output_time, .written_time = osx_get_written_time, + .probe_priority = 1, }; OutputPlugin *coreaudio_oplist[] = { &osx_op, NULL }; diff -r 31b1dbef64c2 -r 372ef3b764fd src/CoreAudio/coreaudio.h --- a/src/CoreAudio/coreaudio.h Fri Apr 24 09:21:24 2009 -0500 +++ b/src/CoreAudio/coreaudio.h Fri Apr 24 09:58:54 2009 -0500 @@ -82,7 +82,7 @@ extern OSXConfig osx_cfg; -void osx_init(void); +OutputPluginInitStatus osx_init(void); void osx_about(void); void osx_configure(void); diff -r 31b1dbef64c2 -r 372ef3b764fd src/CoreAudio/init.c --- a/src/CoreAudio/init.c Fri Apr 24 09:21:24 2009 -0500 +++ b/src/CoreAudio/init.c Fri Apr 24 09:58:54 2009 -0500 @@ -22,7 +22,7 @@ extern float left_volume, right_volume; -void osx_init(void) +OutputPluginInitStatus osx_init(void) { mcs_handle_t *cfgfile; @@ -52,4 +52,6 @@ aud_cfg_db_get_string(cfgfile, "OSX", "alt_mixer_device", &osx_cfg.alt_mixer_device); aud_cfg_db_close(cfgfile); } + + return OUTPUT_PLUGIN_INIT_FOUND_DEVICES; }