modproperties.h
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2011 by Mathias Panzenböck
3  email : grosser.meister.morti@gmx.net
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, *
19  * MA 02110-1301 USA *
20  ***************************************************************************/
21 
22 #ifndef TAGLIB_MODPROPERTIES_H
23 #define TAGLIB_MODPROPERTIES_H
24 
25 #include "taglib.h"
26 #include "audioproperties.h"
27 
28 namespace TagLib {
29 
30  namespace Mod {
31 
33  {
34  public:
35  Properties(AudioProperties::ReadStyle propertiesStyle);
36  virtual ~Properties();
37 
38  int length() const;
39  int lengthInSeconds() const;
40  int lengthInMilliseconds() const;
41  int bitrate() const;
42  int sampleRate() const;
43  int channels() const;
44 
45  uint instrumentCount() const;
46  uchar lengthInPatterns() const;
47 
48  void setChannels(int channels);
49 
50  void setInstrumentCount(uint sampleCount);
51  void setLengthInPatterns(uchar lengthInPatterns);
52 
53  private:
54  friend class File;
55 
56  Properties(const Properties&);
57  Properties &operator=(const Properties&);
58 
59  class PropertiesPrivate;
60  PropertiesPrivate *d;
61  };
62 
63  }
64 
65 }
66 
67 #endif
Definition: modproperties.h:32
unsigned int uint
Definition: taglib.h:66
unsigned char uchar
Definition: taglib.h:64
ReadStyle
Definition: audioproperties.h:53
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Definition: modfile.h:36
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