aiffproperties.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_AIFFPROPERTIES_H
00027 #define TAGLIB_AIFFPROPERTIES_H
00028
00029 #include "audioproperties.h"
00030
00031 namespace TagLib {
00032
00033 namespace RIFF {
00034
00035 namespace AIFF {
00036
00037 class File;
00038
00040
00046 class TAGLIB_EXPORT Properties : public AudioProperties
00047 {
00048 public:
00055 Properties(const ByteVector &data, ReadStyle style);
00056
00061 Properties(File *file, ReadStyle style);
00062
00066 virtual ~Properties();
00067
00076 virtual int length() const;
00077
00084
00085 int lengthInSeconds() const;
00086
00092
00093 int lengthInMilliseconds() const;
00094
00098 virtual int bitrate() const;
00099
00103 virtual int sampleRate() const;
00104
00108 virtual int channels() const;
00109
00113 int bitsPerSample() const;
00114
00122 int sampleWidth() const;
00123
00127 unsigned int sampleFrames() const;
00128
00132 bool isAiffC() const;
00133
00142 ByteVector compressionType() const;
00143
00151 String compressionName() const;
00152
00153 private:
00154 Properties(const Properties &);
00155 Properties &operator=(const Properties &);
00156
00157 void read(File *file);
00158
00159 class PropertiesPrivate;
00160 PropertiesPrivate *d;
00161 };
00162 }
00163 }
00164 }
00165
00166 #endif