1
/***************************************************************************
2
copyright : (C) 2006 by Lukáš Lalinský
3
email : lalinsky@gmail.com
5
copyright : (C) 2002 - 2008 by Scott Wheeler
6
email : wheeler@kde.org
7
(original Vorbis implementation)
8
***************************************************************************/
10
/***************************************************************************
11
* This library is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU Lesser General Public License version *
13
* 2.1 as published by the Free Software Foundation. *
15
* This library is distributed in the hope that it will be useful, but *
16
* WITHOUT ANY WARRANTY; without even the implied warranty of *
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18
* Lesser General Public License for more details. *
20
* You should have received a copy of the GNU Lesser General Public *
21
* License along with this library; if not, write to the Free Software *
22
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
25
* Alternatively, this file is available under the Mozilla Public *
26
* License Version 1.1. You may obtain a copy of the License at *
27
* http://www.mozilla.org/MPL/ *
28
***************************************************************************/
30
#ifndef TAGLIB_SPEEXPROPERTIES_H
31
#define TAGLIB_SPEEXPROPERTIES_H
33
#include <audioproperties.h>
41
//! An implementation of audio property reading for Ogg Speex
44
* This reads the data from an Ogg Speex stream found in the AudioProperties
48
class TAGLIB_EXPORT Properties : public AudioProperties
52
* Create an instance of Speex::Properties with the data read from the
53
* Speex::File \a file.
55
Properties(File *file, ReadStyle style = Average);
58
* Destroys this Speex::Properties instance.
60
virtual ~Properties();
64
virtual int length() const;
65
virtual int bitrate() const;
66
virtual int sampleRate() const;
67
virtual int channels() const;
70
* Returns the Speex version, currently "0" (as specified by the spec).
72
int speexVersion() const;
75
Properties(const Properties &);
76
Properties &operator=(const Properties &);
80
class PropertiesPrivate;