From f3447ae38dfdd17dd9ef6a200f5bbd92baf2a82e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathias=20Panzenb=C3=B6ck?= Date: Sat, 25 Jun 2011 01:54:22 +0200 Subject: [PATCH] style fixes for enum value names --- taglib/it/itfile.cpp | 4 ++-- taglib/it/itproperties.cpp | 2 +- taglib/it/itproperties.h | 20 ++++++++++---------- taglib/s3m/s3mproperties.h | 14 +++++++------- taglib/xm/xmproperties.h | 2 +- 5 files changed, 21 insertions(+), 21 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); diff --git a/taglib/s3m/s3mproperties.h b/taglib/s3m/s3mproperties.h index bbfc7c61..4be14508 100644 --- a/taglib/s3m/s3mproperties.h +++ b/taglib/s3m/s3mproperties.h @@ -32,13 +32,13 @@ namespace TagLib { 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); diff --git a/taglib/xm/xmproperties.h b/taglib/xm/xmproperties.h index f1aba404..97f93111 100644 --- a/taglib/xm/xmproperties.h +++ b/taglib/xm/xmproperties.h @@ -33,7 +33,7 @@ namespace TagLib { public: /*! Flag bits. */ enum { - F_AMIGA_FREQ = 1 + LinearFreqTable = 1 // otherwise its the amiga freq. table }; Properties(AudioProperties::ReadStyle propertiesStyle); -- 2.40.0