diff options
Diffstat (limited to 'taglib/it')
-rw-r--r-- | taglib/it/itfile.cpp | 4 | ||||
-rw-r--r-- | taglib/it/itproperties.cpp | 2 | ||||
-rw-r--r-- | taglib/it/itproperties.h | 20 |
3 files changed, 13 insertions, 13 deletions
diff --git a/taglib/it/itfile.cpp b/taglib/it/itfile.cpp index 7d702edf..9dde7e6e 100644 --- a/taglib/it/itfile.cpp +++ b/taglib/it/itfile.cpp @@ -145,7 +145,7 @@ bool IT::File::save() return false; long fileSize = this->length(); - if(special & Properties::S_MESSAGE) { + if(special & Properties::MessageAttached) { seek(54); if(!readU16L(messageLength) || !readU32L(messageOffset)) return false; @@ -215,7 +215,7 @@ void IT::File::read(bool) // 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); diff --git a/taglib/it/itproperties.cpp b/taglib/it/itproperties.cpp index 416b70d1..392ec604 100644 --- a/taglib/it/itproperties.cpp +++ b/taglib/it/itproperties.cpp @@ -101,7 +101,7 @@ ushort IT::Properties::lengthInPatterns() const bool IT::Properties::stereo() const { - return d->flags & F_STEREO; + return d->flags & Stereo; } ushort IT::Properties::instrumentCount() const diff --git a/taglib/it/itproperties.h b/taglib/it/itproperties.h index 632b87a8..79ebc383 100644 --- a/taglib/it/itproperties.h +++ b/taglib/it/itproperties.h @@ -32,20 +32,20 @@ namespace TagLib { 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); |