TagLib  1.13.1
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, 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_MODPROPERTIES_H
27 #define TAGLIB_MODPROPERTIES_H
28 
29 #include "taglib.h"
30 #include "audioproperties.h"
31 
32 namespace TagLib {
33  namespace Mod {
35  {
36  public:
38  virtual ~Properties();
39 
40  int length() const;
41  int lengthInSeconds() const;
42  int lengthInMilliseconds() const;
43  int bitrate() const;
44  int sampleRate() const;
45  int channels() const;
46 
47  unsigned int instrumentCount() const;
48  unsigned char lengthInPatterns() const;
49 
50  void setChannels(int channels);
51 
52  void setInstrumentCount(unsigned int sampleCount);
53  void setLengthInPatterns(unsigned char lengthInPatterns);
54 
55  private:
56  friend class File;
57 
58  Properties(const Properties&);
59  Properties &operator=(const Properties&);
60 
61  class PropertiesPrivate;
62  PropertiesPrivate *d;
63  };
64  } // namespace Mod
65 } // namespace TagLib
66 #endif
A simple, abstract interface to common audio properties.
Definition: audioproperties.h:43
ReadStyle
Definition: audioproperties.h:53
Definition: modfile.h:39
Definition: modproperties.h:35
unsigned char lengthInPatterns() const
unsigned int instrumentCount() const
void setLengthInPatterns(unsigned char lengthInPatterns)
void setInstrumentCount(unsigned int sampleCount)
void setChannels(int channels)
int lengthInSeconds() const
int lengthInMilliseconds() const
Properties(AudioProperties::ReadStyle propertiesStyle)
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40