TagLib 1.6.1 (TagLib: flacproperties.h Source File)

flacproperties.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     copyright            : (C) 2003 by Allan Sandfeld Jensen
00003     email                : kde@carewolf.org
00004  ***************************************************************************/
00005 
00006 /***************************************************************************
00007  *   This library is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU Lesser General Public License version   *
00009  *   2.1 as published by the Free Software Foundation.                     *
00010  *                                                                         *
00011  *   This library is distributed in the hope that it will be useful, but   *
00012  *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00014  *   Lesser General Public License for more details.                       *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Lesser General Public      *
00017  *   License along with this library; if not, write to the Free Software   *
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00019  *   USA                                                                   *
00020  *                                                                         *
00021  *   Alternatively, this file is available under the Mozilla Public        *
00022  *   License Version 1.1.  You may obtain a copy of the License at         *
00023  *   http://www.mozilla.org/MPL/                                           *
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        // BIC: switch to const reference
00053       Properties(ByteVector data, long streamLength, ReadStyle style = Average);
00054 
00059        // BIC: remove
00060       Properties(File *file, ReadStyle style = Average);
00061 
00065       virtual ~Properties();
00066 
00067       // Reimplementations.
00068 
00069       virtual int length() const;
00070       virtual int bitrate() const;
00071       virtual int sampleRate() const;
00072       virtual int channels() const;
00073 
00078       int sampleWidth() const;
00079 
00080     private:
00081       Properties(const Properties &);
00082       Properties &operator=(const Properties &);
00083 
00084       void read();
00085 
00086       class PropertiesPrivate;
00087       PropertiesPrivate *d;
00088     };
00089   }
00090 }
00091 
00092 #endif