flacproperties.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2003 by Allan Sandfeld Jensen
email : kde@carewolf.org
***************************************************************************/
/***************************************************************************
* 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_FLACPROPERTIES_H
#define TAGLIB_FLACPROPERTIES_H
#include "tbytevector.h"
#include "taglib_export.h"
#include "audioproperties.h"
namespace TagLib {
namespace FLAC {
class TAGLIB_EXPORT Properties : public AudioProperties
{
public:
Properties(const ByteVector &data, offset_t streamLength, 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;
unsigned long long sampleFrames() const;
ByteVector signature() const;
private:
void read(const ByteVector &data, offset_t streamLength);
class PropertiesPrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<PropertiesPrivate> d;
};
} // namespace FLAC
} // namespace TagLib
#endif
audioproperties.h
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::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::FLAC::Properties::Properties
Properties(const ByteVector &data, offset_t streamLength, ReadStyle style=Average)
TagLib::FLAC::Properties::bitsPerSample
int bitsPerSample() const
TagLib::FLAC::Properties::bitrate
int bitrate() const override
TagLib::FLAC::Properties::sampleFrames
unsigned long long sampleFrames() const
TagLib::FLAC::Properties::~Properties
~Properties() override
TagLib::FLAC::Properties::operator=
Properties & operator=(const Properties &)=delete
TagLib::FLAC::Properties::sampleRate
int sampleRate() const override
TagLib::FLAC::Properties::lengthInMilliseconds
int lengthInMilliseconds() const override
TagLib::FLAC::Properties::Properties
Properties(const Properties &)=delete
TagLib::FLAC::Properties::signature
ByteVector signature() const
TagLib::FLAC::Properties::channels
int channels() const override
TagLib::FLAC
An implementation of FLAC metadata.
Definition flacfile.h:54
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
TagLib::offset_t
off_t offset_t
Definition taglib.h:64
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
tbytevector.h