changeset 3069:372ef3b764fd

port to new API
author William Pitcock <nenolod@atheme.org>
date Fri, 24 Apr 2009 09:58:54 -0500
parents 31b1dbef64c2
children c33daa1689a4
files src/CoreAudio/coreaudio.c src/CoreAudio/coreaudio.h src/CoreAudio/init.c
diffstat 3 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 };
--- 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);
 
--- 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;
 }