Mercurial > audlegacy-plugins
diff src/flac/plugin.c @ 1070:aa85fe8d2473 trunk
[svn] - update FLAC plugin to plugin API v2
author | nenolod |
---|---|
date | Thu, 24 May 2007 12:22:58 -0700 |
parents | 1820b4026fe2 |
children | cb1502e462f9 |
line wrap: on
line diff
--- a/src/flac/plugin.c Thu May 24 12:19:58 2007 -0700 +++ b/src/flac/plugin.c Thu May 24 12:22:58 2007 -0700 @@ -107,7 +107,7 @@ { NULL, NULL, - NULL, + "FLAC Audio Plugin", FLAC_XMMS__init, FLAC_XMMS__aboutbox, FLAC_XMMS__configure, @@ -136,6 +136,10 @@ flac_fmts, }; +InputPlugin *flac_iplist[] = { &flac_ip, NULL }; + +DECLARE_PLUGIN(flac, NULL, NULL, flac_iplist, NULL, NULL, NULL, NULL); + #define SAMPLES_PER_WRITE 512 #define SAMPLE_BUFFER_SIZE ((FLAC__MAX_BLOCK_SIZE + SAMPLES_PER_WRITE) * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS * (24/8)) static FLAC__byte sample_buffer_[SAMPLE_BUFFER_SIZE]; @@ -152,16 +156,6 @@ #define BITRATE_HIST_SIZE 50 static unsigned bitrate_history_[BITRATE_HIST_SIZE]; -#ifdef SUPPORT_ATTRIBUTE_VISIBILITY -InputPlugin *get_iplugin_info() __attribute__((visibility("default"))); -#endif - -InputPlugin *get_iplugin_info() -{ - flac_ip.description = g_strdup_printf(_("FLAC Audio Plugin")); - return &flac_ip; -} - void set_track_info(const char* title, int length_in_msec) { if (stream_data_.is_playing) {