return false;
long fileSize = this->length();
- if(special & Properties::S_MESSAGE) {
+ if(special & Properties::MessageAttached) {
seek(54);
if(!readU16L(messageLength) || !readU32L(messageOffset))
return false;
// sample/instrument names are abused as comments so
// I just add all together.
String message;
- if(special & Properties::S_MESSAGE) {
+ if(special & Properties::MessageAttached) {
READ_U16L_AS(messageLength);
READ_U32L_AS(messageOffset);
seek(messageOffset);
bool IT::Properties::stereo() const
{
- return d->flags & F_STEREO;
+ return d->flags & Stereo;
}
ushort IT::Properties::instrumentCount() const
public:
/*! Flag bits. */
enum {
- F_STEREO = 1,
- F_VOL0_MIX_OPT = 2,
- F_INSTRUMENTS = 4,
- F_LINEAR_SLIDES = 8,
- F_OLD_EFFECTS = 16,
- F_LINK_EFFECT = 32,
- F_MIDI_PITCH_CTRL = 64,
- F_EMBEDDED_MIDI_CONF = 128
+ Stereo = 1,
+ Vol0MixOptimizations = 2,
+ UseInstruments = 4,
+ LinearSlides = 8,
+ OldEffects = 16,
+ LinkEffects = 32,
+ UseMidiPitchController = 64,
+ RequestEmbeddedMidiConf = 128
};
/*! Special bits. */
enum {
- S_MESSAGE = 1,
- S_EMBEDDED_MIDI_CONF = 8
+ MessageAttached = 1,
+ MidiConfEmbedded = 8
};
Properties(AudioProperties::ReadStyle propertiesStyle);
public:
/*! Flag bits. */
enum {
- F_ST2_VIBRATO = 1,
- F_ST2_TEMPO = 2,
- F_AMIGA_SLIDES = 4,
- F_VOL0_MIX_OPT = 8,
- F_AMIGA_LIMITS = 16,
- F_ENABLE_FILTER = 32,
- F_CUSTOM_DATA = 128
+ ST2Vibrato = 1,
+ ST2Tempo = 2,
+ AmigaSlides = 4,
+ Vol0MixOptimizations = 8,
+ AmigaLimits = 16,
+ EnableFilter = 32,
+ CustomData = 128
};
Properties(AudioProperties::ReadStyle propertiesStyle);
public:
/*! Flag bits. */
enum {
- F_AMIGA_FREQ = 1
+ LinearFreqTable = 1 // otherwise its the amiga freq. table
};
Properties(AudioProperties::ReadStyle propertiesStyle);