| TagLib 1.13 |  |

opusfile.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_OPUSFILE_H
31#define TAGLIB_OPUSFILE_H
32
33#include "oggfile.h"
34#include "xiphcomment.h"
35
36#include "opusproperties.h"
37
38 namespace TagLib {
39
40 namespace Ogg {
41
43
44 namespace Opus {
45
47
55 class TAGLIB_EXPORT File : public Ogg::File
56 {
57 public:
64 File(FileName file, bool readProperties = true,
65 Properties::ReadStyle propertiesStyle = Properties::Average);
66
76 File(IOStream *stream, bool readProperties = true,
77 Properties::ReadStyle propertiesStyle = Properties::Average);
78
82 virtual ~File();
83
89 virtual Ogg::XiphComment *tag() const;
90
95 PropertyMap properties() const;
96
101 PropertyMap setProperties(const PropertyMap &);
102
107 virtual Properties *audioProperties() const;
108
114 virtual bool save();
115
123 static bool isSupported(IOStream *stream);
124
125 private:
126 File(const File &);
127 File &operator=(const File &);
128
129 void read(bool readProperties);
130
131 class FilePrivate;
132 FilePrivate *d;
133 };
134 }
135 }
136}
137
138#endif
TagLib::AudioProperties::ReadStyle
ReadStyle
Definition: audioproperties.h:53
TagLib::AudioProperties::Average
@ Average
Read more of the file and make better values guesses.
Definition: audioproperties.h:57
TagLib::IOStream
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:63
TagLib::Ogg::File
An implementation of TagLib::File with some helpers for Ogg based formats.
Definition: oggfile.h:51
TagLib::Ogg::Opus::File
An implementation of Ogg::File with Opus specific methods.
Definition: opusfile.h:56
TagLib::Ogg::Opus::File::save
virtual bool save()
TagLib::Ogg::Opus::File::setProperties
PropertyMap setProperties(const PropertyMap &)
TagLib::Ogg::Opus::File::properties
PropertyMap properties() const
TagLib::Ogg::Opus::File::File
File(FileName file, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average)
TagLib::Ogg::Opus::File::audioProperties
virtual Properties * audioProperties() const
TagLib::Ogg::Opus::File::~File
virtual ~File()
TagLib::Ogg::Opus::File::tag
virtual Ogg::XiphComment * tag() const
TagLib::Ogg::Opus::File::File
File(IOStream *stream, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average)
TagLib::Ogg::Opus::File::isSupported
static bool isSupported(IOStream *stream)
TagLib::Ogg::Opus::Properties
An implementation of audio property reading for Ogg Opus.
Definition: opusproperties.h:51
TagLib::Ogg::XiphComment
Ogg Vorbis comment implementation.
Definition: xiphcomment.h:71
TagLib::PropertyMap
A map for format-independent <key,valuelist> tag representations.
Definition: tpropertymap.h:119
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
TagLib::FileName
const char * FileName
Definition: tiostream.h:57
oggfile.h
opusproperties.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
xiphcomment.h