Mercurial > audlegacy-plugins
comparison src/alac/plugin.c @ 69:08c9353a9bb3 trunk
[svn] - about box
| author | nenolod |
|---|---|
| date | Sat, 30 Sep 2006 23:18:01 -0700 |
| parents | d435a3abc035 |
| children | 31799ddaf2e9 |
comparison
equal
deleted
inserted
replaced
| 68:d435a3abc035 | 69:08c9353a9bb3 |
|---|---|
| 30 #include <stdint.h> | 30 #include <stdint.h> |
| 31 #include <stdlib.h> | 31 #include <stdlib.h> |
| 32 #include <errno.h> | 32 #include <errno.h> |
| 33 #include <string.h> | 33 #include <string.h> |
| 34 | 34 |
| 35 #include <glib.h> | |
| 36 #include <glib/gi18n.h> | |
| 37 | |
| 35 #include <audacious/plugin.h> | 38 #include <audacious/plugin.h> |
| 36 #include <audacious/output.h> | 39 #include <audacious/output.h> |
| 37 #include <audacious/vfs.h> | 40 #include <audacious/vfs.h> |
| 41 #include <audacious/util.h> | |
| 38 | 42 |
| 39 #include "demux.h" | 43 #include "demux.h" |
| 40 #include "decomp.h" | 44 #include "decomp.h" |
| 41 #include "stream.h" | 45 #include "stream.h" |
| 42 | 46 |
| 49 gpointer decode_thread(void *args); | 53 gpointer decode_thread(void *args); |
| 50 static GThread *playback_thread; | 54 static GThread *playback_thread; |
| 51 static int going = 0; | 55 static int going = 0; |
| 52 | 56 |
| 53 extern void set_endian(); | 57 extern void set_endian(); |
| 58 | |
| 59 static void alac_about(void) | |
| 60 { | |
| 61 static GtkWidget *aboutbox; | |
| 62 | |
| 63 if(aboutbox != NULL) | |
| 64 return; | |
| 65 | |
| 66 aboutbox = xmms_show_message("About Apple Lossless Audio Plugin", | |
| 67 "Copyright (c) 2006 Audacious team\n" | |
| 68 "Portions (c) 2005-2006 David Hammerton <crazney -at- crazney.net>", | |
| 69 _("Ok"), FALSE, NULL, NULL); | |
| 70 | |
| 71 g_signal_connect(G_OBJECT(aboutbox), "destroy", | |
| 72 G_CALLBACK(gtk_widget_destroyed), | |
| 73 &aboutbox); | |
| 74 } | |
| 54 | 75 |
| 55 static void alac_init(void) | 76 static void alac_init(void) |
| 56 { | 77 { |
| 57 /* empty */ | 78 /* empty */ |
| 58 } | 79 } |
| 115 InputPlugin alac_ip = { | 136 InputPlugin alac_ip = { |
| 116 NULL, | 137 NULL, |
| 117 NULL, | 138 NULL, |
| 118 "Apple Lossless Plugin", /* Description */ | 139 "Apple Lossless Plugin", /* Description */ |
| 119 alac_init, | 140 alac_init, |
| 120 NULL, | 141 alac_about, |
| 121 NULL, | 142 NULL, |
| 122 is_our_file, | 143 is_our_file, |
| 123 NULL, | 144 NULL, |
| 124 play_file, | 145 play_file, |
| 125 stop, | 146 stop, |
