TagLib 1.9.1 (s3mproperties.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
s3m
s3mproperties.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_S3MPROPERTIES_H
23
#define TAGLIB_S3MPROPERTIES_H
24
25
#include "
taglib.h
"
26
#include "
audioproperties.h
"
27
28
namespace
TagLib {
29
namespace
S3M {
30
class
TAGLIB_EXPORT
Properties
:
public
AudioProperties
{
31
friend
class
File
;
32
public
:
34
enum
{
35
ST2Vibrato = 1,
36
ST2Tempo = 2,
37
AmigaSlides = 4,
38
Vol0MixOptimizations = 8,
39
AmigaLimits = 16,
40
EnableFilter = 32,
41
CustomData = 128
42
};
43
44
Properties
(
AudioProperties::ReadStyle
propertiesStyle);
45
virtual
~
Properties
();
46
47
int
length()
const
;
48
int
bitrate()
const
;
49
int
sampleRate()
const
;
50
int
channels()
const
;
51
52
ushort
lengthInPatterns()
const
;
53
bool
stereo()
const
;
54
ushort
sampleCount()
const
;
55
ushort
patternCount()
const
;
56
ushort
flags()
const
;
57
ushort
trackerVersion()
const
;
58
ushort
fileFormatVersion()
const
;
59
uchar
globalVolume()
const
;
60
uchar
masterVolume()
const
;
61
uchar
tempo()
const
;
62
uchar
bpmSpeed()
const
;
63
64
void
setChannels(
int
channels);
65
66
void
setLengthInPatterns (
ushort
lengthInPatterns);
67
void
setStereo (
bool
stereo);
68
void
setSampleCount (
ushort
sampleCount);
69
void
setPatternCount (
ushort
patternCount);
70
void
setFlags (
ushort
flags);
71
void
setTrackerVersion (
ushort
trackerVersion);
72
void
setFileFormatVersion(
ushort
fileFormatVersion);
73
void
setGlobalVolume (
uchar
globalVolume);
74
void
setMasterVolume (
uchar
masterVolume);
75
void
setTempo (
uchar
tempo);
76
void
setBpmSpeed (
uchar
bpmSpeed);
77
78
private
:
79
Properties
(
const
Properties
&);
80
Properties
&operator=(
const
Properties
&);
81
82
class
PropertiesPrivate;
83
PropertiesPrivate *d;
84
};
85
}
86
}
87
88
#endif