TagLib  2.2.1
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 
33 namespace TagLib {
34  namespace ASF {
37  {
38  public:
39 
43  enum Codec
44  {
48  Unknown = 0,
49 
54 
59 
64 
69  };
70 
74  Properties();
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 
126  String codecName() const;
127 
136  String codecDescription() const;
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
Definition: asfproperties.h:58
Definition: asfproperties.h:63
A wide string class suitable for unicode.
Definition: tstring.h:82
Definition: asfproperties.h:68
Codec
Definition: asfproperties.h:43
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Definition: asfproperties.h:53
A simple, abstract interface to common audio properties.
Definition: audioproperties.h:45
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
An implementation of ASF audio properties.
Definition: asfproperties.h:36