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_TRUEAUDIOPROPERTIES_H
00031 #define TAGLIB_TRUEAUDIOPROPERTIES_H
00032
00033 #include "audioproperties.h"
00034
00035 namespace TagLib {
00036
00037 namespace TrueAudio {
00038
00039 class File;
00040
00041 static const unsigned int HeaderSize = 18;
00042
00044
00050 class TAGLIB_EXPORT Properties : public AudioProperties
00051 {
00052 public:
00057 Properties(const ByteVector &data, long streamLength, ReadStyle style = Average);
00058
00062 virtual ~Properties();
00063
00072 virtual int length() const;
00073
00080
00081 int lengthInSeconds() const;
00082
00088
00089 int lengthInMilliseconds() const;
00090
00094 virtual int bitrate() const;
00095
00099 virtual int sampleRate() const;
00100
00104 virtual int channels() const;
00105
00109 int bitsPerSample() const;
00110
00114 unsigned int sampleFrames() const;
00115
00119 int ttaVersion() const;
00120
00121 private:
00122 Properties(const Properties &);
00123 Properties &operator=(const Properties &);
00124
00125 void read(const ByteVector &data, long streamLength);
00126
00127 class PropertiesPrivate;
00128 PropertiesPrivate *d;
00129 };
00130 }
00131 }
00132
00133 #endif