matroskaproperties.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2025 by Urs Fleisch
email : ufleisch@users.sourceforge.net
***************************************************************************/
/***************************************************************************
* 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_MATROSKAPROPERTIES_H
#define TAGLIB_MATROSKAPROPERTIES_H
#include "taglib_export.h"
#include "audioproperties.h"
namespace TagLib::EBML {
class MkTracks;
class MkInfo;
}
namespace TagLib::Matroska {
class File;
class TAGLIB_EXPORT Properties : public AudioProperties
{
public:
explicit Properties(File *file, ReadStyle style = Average);
~Properties() override;
Properties(const Properties &) = delete;
Properties &operator=(const Properties &) = delete;
int lengthInMilliseconds() const override;
int bitrate() const override;
int sampleRate() const override;
int channels() const override;
int bitsPerSample() const;
String docType() const;
int docTypeVersion() const;
String codecName() const;
String title() const;
private:
class PropertiesPrivate;
friend class EBML::MkInfo;
friend class EBML::MkTracks;
friend class File;
void setLengthInMilliseconds(int length);
void setSampleRate(int sampleRate);
void setChannels(int channels);
void setBitsPerSample(int bitsPerSample);
void setDocType(const String &docType);
void setDocTypeVersion(int docTypeVersion);
void setCodecName(const String &codecName);
void setTitle(const String &title);
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<PropertiesPrivate> d;
};
}
#endif
audioproperties.h
TagLib::AudioProperties::length
virtual TAGLIB_DEPRECATED int length() const
TagLib::AudioProperties::AudioProperties
AudioProperties(const AudioProperties &)=delete
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::Matroska::File
An implementation of TagLib::File with Matroska specific methods.
Definition matroskafile.h:40
TagLib::Matroska::Properties::codecName
String codecName() const
TagLib::Matroska::Properties::lengthInMilliseconds
int lengthInMilliseconds() const override
TagLib::Matroska::Properties::sampleRate
int sampleRate() const override
TagLib::Matroska::Properties::docTypeVersion
int docTypeVersion() const
TagLib::Matroska::Properties::Properties
Properties(File *file, ReadStyle style=Average)
TagLib::Matroska::Properties::title
String title() const
TagLib::Matroska::Properties::File
friend class File
Definition matroskaproperties.h:111
TagLib::Matroska::Properties::~Properties
~Properties() override
TagLib::Matroska::Properties::docType
String docType() const
TagLib::Matroska::Properties::Properties
Properties(const Properties &)=delete
TagLib::Matroska::Properties::operator=
Properties & operator=(const Properties &)=delete
TagLib::Matroska::Properties::bitrate
int bitrate() const override
TagLib::Matroska::Properties::bitsPerSample
int bitsPerSample() const
TagLib::Matroska::Properties::channels
int channels() const override
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::EBML
Definition matroskaattachments.h:32
TagLib::Matroska
An implementation of Matroska metadata.
Definition matroskaattachedfile.h:32
taglib_export.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