opusfile.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2012 by Lukáš Lalinský
email : lalinsky@gmail.com
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
(original Vorbis implementation)
***************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_OPUSFILE_H
#define TAGLIB_OPUSFILE_H
#include "oggfile.h"
#include "xiphcomment.h"
#include "opusproperties.h"
namespace TagLib {
namespace Ogg {
namespace Opus {
class TAGLIB_EXPORT File : public Ogg::File
{
public:
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
File(IOStream *stream, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
~File() override;
File(const File &) = delete;
File &operator=(const File &) = delete;
Ogg::XiphComment *tag() const override;
PropertyMap properties() const override;
PropertyMap setProperties(const PropertyMap &) override;
Properties *audioProperties() const override;
bool save() override;
static bool isSupported(IOStream *stream);
private:
void read(bool readProperties);
class FilePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<FilePrivate> d;
};
} // namespace Opus
} // namespace Ogg
} // namespace TagLib
#endif
TagLib::AudioProperties::ReadStyle
ReadStyle
Definition audioproperties.h:56
TagLib::AudioProperties::Average
@ Average
Read more of the file and make better values guesses.
Definition audioproperties.h:60
TagLib::IOStream
An abstract class that provides operations on a sequence of bytes.
Definition tiostream.h:65
TagLib::Ogg::File
An implementation of TagLib::File with some helpers for Ogg based formats.
Definition oggfile.h:51
TagLib::Ogg::Opus::File::save
bool save() override
TagLib::Ogg::Opus::File::properties
PropertyMap properties() const override
TagLib::Ogg::Opus::File::audioProperties
Properties * audioProperties() const override
TagLib::Ogg::Opus::File::~File
~File() override
TagLib::Ogg::Opus::File::File
File(const File &)=delete
TagLib::Ogg::Opus::File::tag
Ogg::XiphComment * tag() const override
TagLib::Ogg::Opus::File::setProperties
PropertyMap setProperties(const PropertyMap &) override
TagLib::Ogg::Opus::File::File
File(FileName file, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average)
TagLib::Ogg::Opus::File::operator=
File & operator=(const File &)=delete
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,values> tag representations.
Definition tpropertymap.h:123
TagLib::Ogg::Opus
A namespace containing classes for Opus metadata.
Definition opusfile.h:43
TagLib::Ogg
A namespace for the classes used by Ogg-based metadata files.
Definition flacfile.h:41
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
TagLib::FileName
const char * FileName
Definition tiostream.h:59
oggfile.h
opusproperties.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition taglib_export.h:40
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55
xiphcomment.h