TagLib 1.6.1 (TagLib: trueaudioproperties.h Source File)

trueaudioproperties.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     copyright            : (C) 2006 by Lukáš Lalinský
00003     email                : lalinsky@gmail.com
00004 
00005     copyright            : (C) 2004 by Allan Sandfeld Jensen
00006     email                : kde@carewolf.org
00007                            (original MPC implementation)
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *   This library is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU Lesser General Public License version   *
00013  *   2.1 as published by the Free Software Foundation.                     *
00014  *                                                                         *
00015  *   This library is distributed in the hope that it will be useful, but   *
00016  *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
00017  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00018  *   Lesser General Public License for more details.                       *
00019  *                                                                         *
00020  *   You should have received a copy of the GNU Lesser General Public      *
00021  *   License along with this library; if not, write to the Free Software   *
00022  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00023  *   USA                                                                   *
00024  *                                                                         *
00025  *   Alternatively, this file is available under the Mozilla Public        *
00026  *   License Version 1.1.  You may obtain a copy of the License at         *
00027  *   http://www.mozilla.org/MPL/                                           *
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 uint 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 
00064       // Reimplementations.
00065 
00066       virtual int length() const;
00067       virtual int bitrate() const;
00068       virtual int sampleRate() const;
00069       virtual int channels() const;
00070 
00074       int bitsPerSample() const;
00075 
00079       int ttaVersion() const;
00080 
00081     private:
00082       Properties(const Properties &);
00083       Properties &operator=(const Properties &);
00084 
00085       void read();
00086 
00087       class PropertiesPrivate;
00088       PropertiesPrivate *d;
00089     };
00090   }
00091 }
00092 
00093 #endif