TagLib 1.11 (TagLib: opusproperties.h Source File)

opusproperties.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     copyright            : (C) 2012 by Lukáš Lalinský
00003     email                : lalinsky@gmail.com
00004 
00005     copyright            : (C) 2002 - 2008 by Scott Wheeler
00006     email                : wheeler@kde.org
00007                            (original Vorbis 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., 51 Franklin Street, Fifth Floor, Boston, MA         *
00023  *   02110-1301  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_OPUSPROPERTIES_H
00031 #define TAGLIB_OPUSPROPERTIES_H
00032 
00033 #include "audioproperties.h"
00034 
00035 namespace TagLib {
00036 
00037   namespace Ogg {
00038 
00039     namespace Opus {
00040 
00041       class File;
00042 
00044 
00050       class TAGLIB_EXPORT Properties : public AudioProperties
00051       {
00052       public:
00057         Properties(File *file, ReadStyle style = Average);
00058 
00062         virtual ~Properties();
00063 
00072         virtual int length() const;
00073 
00080         // BIC: make virtual
00081         int lengthInSeconds() const;
00082 
00088         // BIC: make virtual
00089         int lengthInMilliseconds() const;
00090 
00094         virtual int bitrate() const;
00095 
00102         virtual int sampleRate() const;
00103 
00107         virtual int channels() const;
00108 
00114         int inputSampleRate() const;
00115 
00119         int opusVersion() const;
00120 
00121       private:
00122         Properties(const Properties &);
00123         Properties &operator=(const Properties &);
00124 
00125         void read(File *file);
00126 
00127         class PropertiesPrivate;
00128         PropertiesPrivate *d;
00129       };
00130     }
00131   }
00132 }
00133 
00134 #endif