comparison src/CoreAudio/coreaudio.c @ 1103:c087e8461bab trunk

[svn] - coreaudio: convert to plugin API v2
author nenolod
date Thu, 24 May 2007 23:40:51 -0700
parents d124034ebea3
children 761e17b23e0c
comparison
equal deleted inserted replaced
1102:695d9c38774a 1103:c087e8461bab
21 21
22 #include "audacious/plugin.h" 22 #include "audacious/plugin.h"
23 #include <audacious/i18n.h> 23 #include <audacious/i18n.h>
24 24
25 OutputPlugin osx_op = 25 OutputPlugin osx_op =
26 { 26 {
27 NULL, 27 NULL,
28 NULL, 28 NULL,
29 NULL, /* Description */ 29 "CoreAudio Output Plugin", /* Description */
30 osx_init, 30 osx_init,
31 NULL, 31 NULL,
32 osx_about, 32 osx_about,
33 osx_configure, 33 osx_configure,
34 osx_get_volume, 34 osx_get_volume,
35 osx_set_volume, 35 osx_set_volume,
36 osx_open, 36 osx_open,
37 osx_write, 37 osx_write,
38 osx_close, 38 osx_close,
39 osx_flush, 39 osx_flush,
40 osx_pause, 40 osx_pause,
41 osx_free, 41 osx_free,
42 osx_playing, 42 osx_playing,
43 osx_get_output_time, 43 osx_get_output_time,
44 osx_get_written_time, 44 osx_get_written_time,
45 }; 45 };
46 46
47 OutputPlugin *get_oplugin_info(void) 47 OutputPlugin *coreaudio_oplist[] = { &osx_op, NULL };
48 { 48
49 osx_op.description = g_strdup(_("CoreAudio Output Plugin")); 49 DECLARE_PLUGIN(coreaudio, NULL, NULL, NULL, coreaudio_oplist, NULL, NULL, NULL);
50 return &osx_op;
51 }