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_MPEGPROPERTIES_H
00027 #define TAGLIB_MPEGPROPERTIES_H
00028
00029 #include "taglib_export.h"
00030 #include "audioproperties.h"
00031
00032 #include "mpegheader.h"
00033
00034 namespace TagLib {
00035
00036 namespace MPEG {
00037
00038 class File;
00039 class XingHeader;
00040
00042
00048 class TAGLIB_EXPORT Properties : public AudioProperties
00049 {
00050 public:
00055 Properties(File *file, ReadStyle style = Average);
00056
00060 virtual ~Properties();
00061
00070 virtual int length() const;
00071
00078
00079 int lengthInSeconds() const;
00080
00086
00087 int lengthInMilliseconds() const;
00088
00092 virtual int bitrate() const;
00093
00097 virtual int sampleRate() const;
00098
00102 virtual int channels() const;
00103
00108 const XingHeader *xingHeader() const;
00109
00113 Header::Version version() const;
00114
00118 int layer() const;
00119
00123 bool protectionEnabled() const;
00124
00128 Header::ChannelMode channelMode() const;
00129
00133 bool isCopyrighted() const;
00134
00138 bool isOriginal() const;
00139
00140 private:
00141 Properties(const Properties &);
00142 Properties &operator=(const Properties &);
00143
00144 void read(File *file);
00145
00146 class PropertiesPrivate;
00147 PropertiesPrivate *d;
00148 };
00149 }
00150 }
00151
00152 #endif