modproperties.h
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
00023
00024
00025
00026 #ifndef TAGLIB_MODPROPERTIES_H
00027 #define TAGLIB_MODPROPERTIES_H
00028
00029 #include "taglib.h"
00030 #include "audioproperties.h"
00031
00032 namespace TagLib {
00033
00034 namespace Mod {
00035
00036 class TAGLIB_EXPORT Properties : public AudioProperties
00037 {
00038 public:
00039 Properties(AudioProperties::ReadStyle propertiesStyle);
00040 virtual ~Properties();
00041
00042 int length() const;
00043 int lengthInSeconds() const;
00044 int lengthInMilliseconds() const;
00045 int bitrate() const;
00046 int sampleRate() const;
00047 int channels() const;
00048
00049 unsigned int instrumentCount() const;
00050 unsigned char lengthInPatterns() const;
00051
00052 void setChannels(int channels);
00053
00054 void setInstrumentCount(unsigned int sampleCount);
00055 void setLengthInPatterns(unsigned char lengthInPatterns);
00056
00057 private:
00058 friend class File;
00059
00060 Properties(const Properties&);
00061 Properties &operator=(const Properties&);
00062
00063 class PropertiesPrivate;
00064 PropertiesPrivate *d;
00065 };
00066
00067 }
00068
00069 }
00070
00071 #endif