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
00027
00028
00029
00030 #ifndef TAGLIB_WVPROPERTIES_H
00031 #define TAGLIB_WVPROPERTIES_H
00032
00033 #include "taglib_export.h"
00034 #include "audioproperties.h"
00035
00036 namespace TagLib {
00037
00038 namespace WavPack {
00039
00040 class File;
00041
00042 static const unsigned int HeaderSize = 32;
00043
00045
00051 class TAGLIB_EXPORT Properties : public AudioProperties
00052 {
00053 public:
00061 Properties(const ByteVector &data, long streamLength, ReadStyle style = Average);
00062
00066
00067 Properties(File *file, long streamLength, ReadStyle style = Average);
00068
00072 virtual ~Properties();
00073
00082 virtual int length() const;
00083
00090
00091 int lengthInSeconds() const;
00092
00098
00099 int lengthInMilliseconds() const;
00100
00104 virtual int bitrate() const;
00105
00109 virtual int sampleRate() const;
00110
00114 virtual int channels() const;
00115
00119 int bitsPerSample() const;
00120
00124 bool isLossless() const;
00125
00129 unsigned int sampleFrames() const;
00130
00134 int version() const;
00135
00136 private:
00137 Properties(const Properties &);
00138 Properties &operator=(const Properties &);
00139
00140 void read(File *file, long streamLength);
00141 unsigned int seekFinalIndex(File *file, long streamLength);
00142
00143 class PropertiesPrivate;
00144 PropertiesPrivate *d;
00145 };
00146 }
00147 }
00148
00149 #endif