| TagLib 1.13 |  |

opusproperties.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2012 by Lukáš Lalinský
3 email : lalinsky@gmail.com
4
5 copyright : (C) 2002 - 2008 by Scott Wheeler
6 email : wheeler@kde.org
7 (original Vorbis implementation)
8***************************************************************************/
9
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. *
14 * *
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. *
19 * *
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., 51 Franklin Street, Fifth Floor, Boston, MA *
23 * 02110-1301 USA *
24 * *
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 ***************************************************************************/
29
30#ifndef TAGLIB_OPUSPROPERTIES_H
31#define TAGLIB_OPUSPROPERTIES_H
32
33#include "audioproperties.h"
34
35 namespace TagLib {
36
37 namespace Ogg {
38
39 namespace Opus {
40
41 class File;
42
44
50 class TAGLIB_EXPORT Properties : public AudioProperties
51 {
52 public:
57 Properties(File *file, ReadStyle style = Average);
58
62 virtual ~Properties();
63
72 TAGLIB_DEPRECATED virtual int length() const;
73
80 // BIC: make virtual
81 int lengthInSeconds() const;
82
88 // BIC: make virtual
89 int lengthInMilliseconds() const;
90
94 virtual int bitrate() const;
95
102 virtual int sampleRate() const;
103
107 virtual int channels() const;
108
114 int inputSampleRate() const;
115
119 int opusVersion() const;
120
121 private:
122 Properties(const Properties &);
123 Properties &operator=(const Properties &);
124
125 void read(File *file);
126
127 class PropertiesPrivate;
128 PropertiesPrivate *d;
129 };
130 }
131 }
132}
133
134#endif
audioproperties.h
TagLib::AudioProperties
A simple, abstract interface to common audio properties.
Definition: audioproperties.h:43
TagLib::AudioProperties::ReadStyle
ReadStyle
Definition: audioproperties.h:53
TagLib::Ogg::Opus::File
An implementation of Ogg::File with Opus specific methods.
Definition: opusfile.h:56
TagLib::Ogg::Opus::Properties
An implementation of audio property reading for Ogg Opus.
Definition: opusproperties.h:51
TagLib::Ogg::Opus::Properties::bitrate
virtual int bitrate() const
TagLib::Ogg::Opus::Properties::opusVersion
int opusVersion() const
TagLib::Ogg::Opus::Properties::inputSampleRate
int inputSampleRate() const
TagLib::Ogg::Opus::Properties::sampleRate
virtual int sampleRate() const
TagLib::Ogg::Opus::Properties::lengthInSeconds
int lengthInSeconds() const
TagLib::Ogg::Opus::Properties::~Properties
virtual ~Properties()
TagLib::Ogg::Opus::Properties::Properties
Properties(File *file, ReadStyle style=Average)
TagLib::Ogg::Opus::Properties::lengthInMilliseconds
int lengthInMilliseconds() const
TagLib::Ogg::Opus::Properties::length
virtual TAGLIB_DEPRECATED int length() const
TagLib::Ogg::Opus::Properties::channels
virtual int channels() const
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
TAGLIB_DEPRECATED
#define TAGLIB_DEPRECATED
Definition: taglib.h:54
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40