mirror of
https://github.com/taglib/taglib.git
synced 2025-07-22 23:14:33 -04:00
added .mod file support
This commit is contained in:
@ -119,7 +119,7 @@ void IT::File::read(bool)
|
||||
|
||||
for(ushort i = 0; i < instrumentCount; ++ i)
|
||||
{
|
||||
seek(192 + length + (i << 2));
|
||||
seek(192L + length + ((long)i << 2));
|
||||
READ_U32L_AS(instrumentOffset);
|
||||
seek(instrumentOffset);
|
||||
|
||||
@ -137,7 +137,7 @@ void IT::File::read(bool)
|
||||
|
||||
for(ushort i = 0; i < sampleCount; ++ i)
|
||||
{
|
||||
seek(192 + length + (instrumentCount << 2) + (i << 2));
|
||||
seek(192L + length + ((long)instrumentCount << 2) + ((long)i << 2));
|
||||
READ_U32L_AS(sampleOffset);
|
||||
|
||||
seek(sampleOffset);
|
||||
@ -182,4 +182,5 @@ void IT::File::read(bool)
|
||||
}
|
||||
|
||||
d->tag.setComment(comment.toString("\n"));
|
||||
d->tag.setTrackerName("Impulse Tracker");
|
||||
}
|
||||
|
@ -22,8 +22,6 @@
|
||||
#ifndef TAGLIB_ITFILE_H
|
||||
#define TAGLIB_ITFILE_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "tfile.h"
|
||||
#include "audioproperties.h"
|
||||
#include "taglib_export.h"
|
||||
|
Reference in New Issue
Block a user