Mercurial > audlegacy-plugins
comparison src/flacng/plugin.c @ 1092:085c579ba08a trunk
[svn] - flacng: convert to plugin API v2
| author | nenolod |
|---|---|
| date | Thu, 24 May 2007 23:19:48 -0700 |
| parents | b1128efde471 |
| children | 626f78ff2439 |
comparison
equal
deleted
inserted
replaced
| 1091:daa0323924d6 | 1092:085c579ba08a |
|---|---|
| 59 NULL, // write a tuple back to a file as a tag | 59 NULL, // write a tuple back to a file as a tag |
| 60 /* flac_is_our_fd */ NULL, // version of is_our_file which is handed an FD | 60 /* flac_is_our_fd */ NULL, // version of is_our_file which is handed an FD |
| 61 flac_fmts // vector of fileextensions allowed by the plugin | 61 flac_fmts // vector of fileextensions allowed by the plugin |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 InputPlugin *flac_iplist[] = { &flac_ip, NULL }; | |
| 65 | |
| 66 DECLARE_PLUGIN(flacng, NULL, NULL, flac_iplist, NULL, NULL, NULL, NULL); | |
| 67 | |
| 64 FLAC__StreamDecoder* test_decoder; | 68 FLAC__StreamDecoder* test_decoder; |
| 65 FLAC__StreamDecoder* main_decoder; | 69 FLAC__StreamDecoder* main_decoder; |
| 66 callback_info* test_info; | 70 callback_info* test_info; |
| 67 callback_info* main_info; | 71 callback_info* main_info; |
| 68 gboolean plugin_initialized = FALSE; | 72 gboolean plugin_initialized = FALSE; |
| 69 gint seek_to = -1; | 73 gint seek_to = -1; |
| 70 static GThread* thread = NULL; | 74 static GThread* thread = NULL; |
| 71 GMutex* flac_pl_mutex; | 75 GMutex* flac_pl_mutex; |
| 72 | 76 |
| 73 /* === */ | 77 /* === */ |
| 74 | |
| 75 InputPlugin* get_iplugin_info(void) { | |
| 76 | |
| 77 _ENTER; | |
| 78 | |
| 79 _DEBUG("%s (%s)", flac_ip.description, _VERSION); | |
| 80 | |
| 81 _LEAVE &flac_ip; | |
| 82 } | |
| 83 | |
| 84 /* --- */ | |
| 85 | 78 |
| 86 void flac_init(void) { | 79 void flac_init(void) { |
| 87 | 80 |
| 88 FLAC__StreamDecoderInitStatus ret; | 81 FLAC__StreamDecoderInitStatus ret; |
| 89 | 82 |
