TagLib API Documentation
asfproperties.h
Go to the documentation of this file.
1/**************************************************************************
2 copyright : (C) 2005-2007 by Lukáš Lalinský
3 email : lalinsky@gmail.com
4 **************************************************************************/
5
6/***************************************************************************
7 * This library is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU Lesser General Public License version *
9 * 2.1 as published by the Free Software Foundation. *
10 * *
11 * This library is distributed in the hope that it will be useful, but *
12 * WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the Free Software *
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19 * 02110-1301 USA *
20 * *
21 * Alternatively, this file is available under the Mozilla Public *
22 * License Version 1.1. You may obtain a copy of the License at *
23 * http://www.mozilla.org/MPL/ *
24 ***************************************************************************/
25
26#ifndef TAGLIB_ASFPROPERTIES_H
27#define TAGLIB_ASFPROPERTIES_H
28
29#include "tstring.h"
30#include "taglib_export.h"
31#include "audioproperties.h"
32
33namespace TagLib {
34 namespace ASF {
37 {
38 public:
39
43 enum Codec
44 {
48 Unknown = 0,
49
54
59
64
69 };
70
75
79 ~Properties() override;
80
81 Properties(const Properties &) = delete;
82 Properties &operator=(const Properties &) = delete;
83
89 int lengthInMilliseconds() const override;
90
94 int bitrate() const override;
95
99 int sampleRate() const override;
100
104 int channels() const override;
105
109 int bitsPerSample() const;
110
117 Codec codec() const;
118
127
137
141 bool isEncrypted() const;
142
143#ifndef DO_NOT_DOCUMENT
144 void setLengthInMilliseconds(int value);
145 void setBitrate(int value);
146 void setSampleRate(int value);
147 void setChannels(int value);
148 void setBitsPerSample(int value);
149 void setCodec(int value);
150 void setCodecName(const String &value);
151 void setCodecDescription(const String &value);
152 void setEncrypted(bool value);
153#endif
154
155 private:
156 class PropertiesPrivate;
158 std::unique_ptr<PropertiesPrivate> d;
159 };
160 } // namespace ASF
161} // namespace TagLib
162#endif
An implementation of ASF audio properties.
Definition: asfproperties.h:37
int sampleRate() const override
int lengthInMilliseconds() const override
Codec
Definition: asfproperties.h:44
@ WMA1
Definition: asfproperties.h:53
@ WMA9Lossless
Definition: asfproperties.h:68
@ WMA9Pro
Definition: asfproperties.h:63
@ WMA2
Definition: asfproperties.h:58
int bitrate() const override
String codecName() const
String codecDescription() const
Properties & operator=(const Properties &)=delete
int channels() const override
bool isEncrypted() const
Properties(const Properties &)=delete
A simple, abstract interface to common audio properties.
Definition: audioproperties.h:46
A wide string class suitable for unicode.
Definition: tstring.h:83
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55