asfproperties.h
Go to the documentation of this file.
/**************************************************************************
copyright : (C) 2005-2007 by Lukáš Lalinský
email : lalinsky@gmail.com
**************************************************************************/
/***************************************************************************
* 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_ASFPROPERTIES_H
#define TAGLIB_ASFPROPERTIES_H
#include "tstring.h"
#include "taglib_export.h"
#include "audioproperties.h"
namespace TagLib {
namespace ASF {
class TAGLIB_EXPORT Properties : public AudioProperties
{
public:
enum Codec
{
Unknown = 0,
WMA1,
WMA2,
WMA9Pro,
WMA9Lossless,
};
Properties();
~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;
Codec codec() const;
String codecName() const;
String codecDescription() const;
bool isEncrypted() const;
#ifndef DO_NOT_DOCUMENT
void setLengthInMilliseconds(int value);
void setBitrate(int value);
void setSampleRate(int value);
void setChannels(int value);
void setBitsPerSample(int value);
void setCodec(int value);
void setCodecName(const String &value);
void setCodecDescription(const String &value);
void setEncrypted(bool value);
#endif
private:
class PropertiesPrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<PropertiesPrivate> d;
};
} // namespace ASF
} // namespace TagLib
#endif
audioproperties.h
TagLib::ASF::Properties::sampleRate
int sampleRate() const override
TagLib::ASF::Properties::lengthInMilliseconds
int lengthInMilliseconds() const override
TagLib::ASF::Properties::bitsPerSample
int bitsPerSample() const
TagLib::ASF::Properties::Codec
Codec
Definition asfproperties.h:44
TagLib::ASF::Properties::WMA1
@ WMA1
Definition asfproperties.h:53
TagLib::ASF::Properties::Unknown
@ Unknown
Definition asfproperties.h:48
TagLib::ASF::Properties::WMA9Lossless
@ WMA9Lossless
Definition asfproperties.h:68
TagLib::ASF::Properties::WMA9Pro
@ WMA9Pro
Definition asfproperties.h:63
TagLib::ASF::Properties::WMA2
@ WMA2
Definition asfproperties.h:58
TagLib::ASF::Properties::bitrate
int bitrate() const override
TagLib::ASF::Properties::~Properties
~Properties() override
TagLib::ASF::Properties::codecName
String codecName() const
TagLib::ASF::Properties::codecDescription
String codecDescription() const
TagLib::ASF::Properties::operator=
Properties & operator=(const Properties &)=delete
TagLib::ASF::Properties::channels
int channels() const override
TagLib::ASF::Properties::isEncrypted
bool isEncrypted() const
TagLib::ASF::Properties::Properties
Properties(const Properties &)=delete
TagLib::ASF::Properties::Properties
Properties()
TagLib::ASF::Properties::codec
Codec codec() const
TagLib::AudioProperties::AudioProperties
AudioProperties(const AudioProperties &)=delete
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::ASF
An implementation of ASF (WMA) metadata.
Definition asfattribute.h:37
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
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
tstring.h