TagLib  1.13.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 "audioproperties.h"
30 #include "tstring.h"
31 #include "taglib_export.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  virtual ~Properties();
80 
89  TAGLIB_DEPRECATED virtual int length() const;
90 
97  // BIC: make virtual
98  int lengthInSeconds() const;
99 
105  // BIC: make virtual
106  int lengthInMilliseconds() const;
107 
111  virtual int bitrate() const;
112 
116  virtual int sampleRate() const;
117 
121  virtual int channels() const;
122 
126  int bitsPerSample() const;
127 
134  Codec codec() const;
135 
143  String codecName() const;
144 
153  String codecDescription() const;
154 
158  bool isEncrypted() const;
159 
160 #ifndef DO_NOT_DOCUMENT
161  // deprecated
162  void setLength(int value);
163 
164  void setLengthInMilliseconds(int value);
165  void setBitrate(int value);
166  void setSampleRate(int value);
167  void setChannels(int value);
168  void setBitsPerSample(int value);
169  void setCodec(int value);
170  void setCodecName(const String &value);
171  void setCodecDescription(const String &value);
172  void setEncrypted(bool value);
173 #endif
174 
175  private:
176  class PropertiesPrivate;
177  PropertiesPrivate *d;
178  };
179  } // namespace ASF
180 } // namespace TagLib
181 #endif
Definition: asfproperties.h:58
Definition: asfproperties.h:63
A wide string class suitable for unicode.
Definition: tstring.h:84
Definition: asfproperties.h:68
Codec
Definition: asfproperties.h:43
#define TAGLIB_DEPRECATED
Definition: taglib.h:54
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Definition: asfproperties.h:53
A simple, abstract interface to common audio properties.
Definition: audioproperties.h:42
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
An implementation of ASF audio properties.
Definition: asfproperties.h:36