Mercurial > audlegacy-plugins
changeset 1562:58f03e54b97a
Update codec names, remove now obsolete getsonginfo.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Sun, 02 Sep 2007 22:51:48 +0100 |
parents | 88878ed02ca0 |
children | 4b2c76a8dda7 f6a052cfa2bb |
files | src/modplug/modplugbmp.cxx src/modplug/modplugbmp.h src/modplug/plugin.cxx |
diffstat | 3 files changed, 5 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/src/modplug/modplugbmp.cxx Sun Sep 02 23:08:33 2007 +0300 +++ b/src/modplug/modplugbmp.cxx Sun Sep 02 22:51:48 2007 +0100 @@ -491,16 +491,6 @@ return (float32)mOutPlug->output_time() / 1000; } -void ModplugXMMS::GetSongInfo(const string& aFilename, char*& aTitle, int32& aLength) -{ - aLength = -1; - *aTitle = NULL; - - Tuple* ti = GetSongTuple( aFilename ); - if ( ti ) - aTitle = format_and_free_ti( ti, &aLength ); -} - Tuple* ModplugXMMS::GetSongTuple(const string& aFilename) { CSoundFile* lSoundFile; @@ -535,13 +525,13 @@ tuple_associate_string(ti, "codec", "OctaMed"); break; case MOD_TYPE_MTM: - tuple_associate_string(ti, "codec", "MTM"); + tuple_associate_string(ti, "codec", "MultiTracker Module"); break; case MOD_TYPE_669: tuple_associate_string(ti, "codec", "669 Composer / UNIS 669"); break; case MOD_TYPE_ULT: - tuple_associate_string(ti, "codec", "ULT"); + tuple_associate_string(ti, "codec", "Ultra Tracker"); break; case MOD_TYPE_STM: tuple_associate_string(ti, "codec", "Scream Tracker"); @@ -574,13 +564,13 @@ tuple_associate_string(ti, "codec", "DigiBooster Pro"); break; case MOD_TYPE_MT2: - tuple_associate_string(ti, "codec", "MT2"); + tuple_associate_string(ti, "codec", "MadTracker 2"); break; case MOD_TYPE_AMF0: tuple_associate_string(ti, "codec", "AMF0"); break; case MOD_TYPE_PSM: - tuple_associate_string(ti, "codec", "PSM"); + tuple_associate_string(ti, "codec", "Protracker Studio Module"); break; default: tuple_associate_string(ti, "codec", "ModPlug unknown");
--- a/src/modplug/modplugbmp.h Sun Sep 02 23:08:33 2007 +0300 +++ b/src/modplug/modplugbmp.h Sun Sep 02 22:51:48 2007 +0100 @@ -99,7 +99,6 @@ void Seek(float32 aTime); // Seek to the specified time. float32 GetTime(); // Get the current play time. - void GetSongInfo(const string& aFilename, char*& aTitle, int32& aLength); // Function to grab the title string Tuple* GetSongTuple(const string& aFilename); void SetInputPlugin(InputPlugin& aInPlugin);
--- a/src/modplug/plugin.cxx Sun Sep 02 23:08:33 2007 +0300 +++ b/src/modplug/plugin.cxx Sun Sep 02 22:51:48 2007 +0100 @@ -60,11 +60,6 @@ return (int)(lTime * 1000); } -static void GetSongInfo(char* aFilename, char** aTitle, int* aLength) -{ - gModplugXMMS.GetSongInfo(aFilename, *aTitle, *aLength); -} - static Tuple* GetSongTuple(char* aFilename) { return gModplugXMMS.GetSongTuple(aFilename); @@ -113,7 +108,7 @@ NULL, NULL, NULL, - GetSongInfo, + NULL, ShowFileInfoBox, NULL, // output GetSongTuple,