Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TAGLIB_ITPROPERTIES_H
00023 #define TAGLIB_ITPROPERTIES_H
00024
00025 #include "taglib.h"
00026 #include "audioproperties.h"
00027
00028 namespace TagLib {
00029 namespace IT {
00030 class TAGLIB_EXPORT Properties : public AudioProperties {
00031 friend class File;
00032 public:
00034 enum {
00035 Stereo = 1,
00036 Vol0MixOptimizations = 2,
00037 UseInstruments = 4,
00038 LinearSlides = 8,
00039 OldEffects = 16,
00040 LinkEffects = 32,
00041 UseMidiPitchController = 64,
00042 RequestEmbeddedMidiConf = 128
00043 };
00044
00046 enum {
00047 MessageAttached = 1,
00048 MidiConfEmbedded = 8
00049 };
00050
00051 Properties(AudioProperties::ReadStyle propertiesStyle);
00052 virtual ~Properties();
00053
00054 int length() const;
00055 int bitrate() const;
00056 int sampleRate() const;
00057 int channels() const;
00058
00059 ushort lengthInPatterns() const;
00060 bool stereo() const;
00061 ushort instrumentCount() const;
00062 ushort sampleCount() const;
00063 ushort patternCount() const;
00064 ushort version() const;
00065 ushort compatibleVersion() const;
00066 ushort flags() const;
00067 ushort special() const;
00068 uchar globalVolume() const;
00069 uchar mixVolume() const;
00070 uchar tempo() const;
00071 uchar bpmSpeed() const;
00072 uchar panningSeparation() const;
00073 uchar pitchWheelDepth() const;
00074
00075 void setChannels(int channels);
00076 void setLengthInPatterns(ushort lengthInPatterns);
00077 void setInstrumentCount(ushort instrumentCount);
00078 void setSampleCount (ushort sampleCount);
00079 void setPatternCount(ushort patternCount);
00080 void setVersion (ushort version);
00081 void setCompatibleVersion(ushort compatibleVersion);
00082 void setFlags (ushort flags);
00083 void setSpecial (ushort special);
00084 void setGlobalVolume(uchar globalVolume);
00085 void setMixVolume (uchar mixVolume);
00086 void setTempo (uchar tempo);
00087 void setBpmSpeed (uchar bpmSpeed);
00088 void setPanningSeparation(uchar panningSeparation);
00089 void setPitchWheelDepth (uchar pitchWheelDepth);
00090
00091 private:
00092 Properties(const Properties&);
00093 Properties &operator=(const Properties&);
00094
00095 class PropertiesPrivate;
00096 PropertiesPrivate *d;
00097 };
00098 }
00099 }
00100
00101 #endif