mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
style fixes for enum value names
This commit is contained in:
parent
89861cf77a
commit
f3447ae38d
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user