Mercurial > audlegacy-plugins
diff src/modplug/plugin.cxx @ 1539:488f7e6c36ed
Tuple builder for modplug. Someone do me a favour and fix getinfo to do something like the one in console.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Thu, 30 Aug 2007 23:38:01 +0100 |
parents | 195b5657303e |
children | 58f03e54b97a |
line wrap: on
line diff
--- a/src/modplug/plugin.cxx Thu Aug 30 18:55:36 2007 +0200 +++ b/src/modplug/plugin.cxx Thu Aug 30 23:38:01 2007 +0100 @@ -4,9 +4,13 @@ * This source code is public domain. */ -#include "audacious/plugin.h" #include "modplug.h" #include "gui/main.h" +extern "C" { +#include "audacious/plugin.h" +#include "audacious/tuple.h" +#include "audacious/tuple_formatter.h" +} extern InputPlugin gModPlug; @@ -44,6 +48,7 @@ { gModplugXMMS.Seek(float32(aTime)); } + static int GetTime(InputPlayback *data) { float32 lTime; @@ -60,6 +65,11 @@ gModplugXMMS.GetSongInfo(aFilename, *aTitle, *aLength); } +static Tuple* GetSongTuple(char* aFilename) +{ + return gModplugXMMS.GetSongTuple(aFilename); +} + void ShowAboutBox(void) { ShowAboutWindow(); @@ -106,7 +116,7 @@ GetSongInfo, ShowFileInfoBox, NULL, // output - NULL, // tuple + GetSongTuple, NULL, NULL, CanPlayFileFromVFS, // vfs