flacproperties.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_FLACPROPERTIES_H
00027 #define TAGLIB_FLACPROPERTIES_H
00028
00029 #include "taglib_export.h"
00030 #include "audioproperties.h"
00031
00032 namespace TagLib {
00033
00034 namespace FLAC {
00035
00036 class File;
00037
00039
00045 class TAGLIB_EXPORT Properties : public AudioProperties
00046 {
00047 public:
00052
00053 Properties(ByteVector data, long streamLength, ReadStyle style = Average);
00054
00059
00060 Properties(File *file, ReadStyle style = Average);
00061
00065 virtual ~Properties();
00066
00075 virtual int length() const;
00076
00083
00084 int lengthInSeconds() const;
00085
00091
00092 int lengthInMilliseconds() const;
00093
00097 virtual int bitrate() const;
00098
00102 virtual int sampleRate() const;
00103
00107 virtual int channels() const;
00108
00113 int bitsPerSample() const;
00114
00123 int sampleWidth() const;
00124
00128 unsigned long long sampleFrames() const;
00129
00134 ByteVector signature() const;
00135
00136 private:
00137 Properties(const Properties &);
00138 Properties &operator=(const Properties &);
00139
00140 void read(const ByteVector &data, long streamLength);
00141
00142 class PropertiesPrivate;
00143 PropertiesPrivate *d;
00144 };
00145 }
00146 }
00147
00148 #endif