# HG changeset patch # User nenolod # Date 1180034578 25200 # Node ID aa85fe8d24733559ff99ce4b4662e296d488dd93 # Parent f04f4a223f7b44f8c3015268ec17c58a6ade9f4a [svn] - update FLAC plugin to plugin API v2 diff -r f04f4a223f7b -r aa85fe8d2473 ChangeLog --- a/ChangeLog Thu May 24 12:19:58 2007 -0700 +++ b/ChangeLog Thu May 24 12:22:58 2007 -0700 @@ -1,3 +1,11 @@ +2007-05-24 19:19:58 +0000 William Pitcock + revision [2304] + - update libconsole to plugin API v2 + + trunk/src/console/Audacious_Driver.cxx | 14 ++++++++------ + 1 file changed, 8 insertions(+), 6 deletions(-) + + 2007-05-24 19:16:55 +0000 William Pitcock revision [2302] - update paranormal visualizer to plugin API v2 diff -r f04f4a223f7b -r aa85fe8d2473 src/flac/plugin.c --- 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) {