diff options
author | Mathias Panzenböck <grosser.meister.morti@gmx.net> | 2011-06-17 05:18:49 +0200 |
---|---|---|
committer | Mathias Panzenböck <grosser.meister.morti@gmx.net> | 2011-06-17 05:18:49 +0200 |
commit | fe356c31b4a71e99309696c0717b03fcc6f17f0f (patch) | |
tree | b3e7ca705caee1fbb5ea4a2f161b3d948413da25 /taglib/it/itfile.cpp | |
parent | eec5e33e0d375a7d25d12165c97ffb4930e379e5 (diff) |
added unit test for one flavour of .mod files
Diffstat (limited to 'taglib/it/itfile.cpp')
-rw-r--r-- | taglib/it/itfile.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/taglib/it/itfile.cpp b/taglib/it/itfile.cpp index 3f65cd7c..31af0ba7 100644 --- a/taglib/it/itfile.cpp +++ b/taglib/it/itfile.cpp @@ -27,11 +27,6 @@ using namespace TagLib; using namespace IT; -// Just copied this array from some example code. -// I think this might be unneccesarry and only needed if -// you convert IT to XM to keep your mod player more simple. -static const uchar AUTOVIB_IT_TO_XM[] = {0, 3, 1, 4, 2, 0, 0, 0}; - class IT::File::FilePrivate { public: @@ -170,20 +165,7 @@ void IT::File::read(bool) READ_BYTE_AS(vibratoDepth); READ_BYTE_AS(vibratoSweep); READ_BYTE_AS(vibratoType); - - if(c4speed == 0) - { - c4speed = 8363; - } - else if(c4speed < 256) - { - c4speed = 256; - } - - vibratoDepth = vibratoDepth & 0x7F; - vibratoSweep = (vibratoSweep + 3) >> 2; - vibratoType = AUTOVIB_IT_TO_XM[vibratoType & 0x07]; - + comment.append(sampleName); } |