Mercurial > audlegacy-plugins
changeset 1070:aa85fe8d2473 trunk
[svn] - update FLAC plugin to plugin API v2
author | nenolod |
---|---|
date | Thu, 24 May 2007 12:22:58 -0700 |
parents | f04f4a223f7b |
children | bd897d14d627 |
files | ChangeLog src/flac/plugin.c |
diffstat | 2 files changed, 13 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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 <nenolod@sacredspiral.co.uk> + 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 <nenolod@sacredspiral.co.uk> revision [2302] - update paranormal visualizer to plugin API v2
--- 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) {