TagLib 1.7.2 (apeproperties.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
ape
apeproperties.h
Go to the documentation of this file.
1
/***************************************************************************
2
copyright : (C) 2010 by Alex Novichkov
3
email : novichko@atnet.ru
4
5
copyright : (C) 2006 by Lukáš Lalinský
6
email : lalinsky@gmail.com
7
(original WavPack implementation)
8
***************************************************************************/
9
10
/***************************************************************************
11
* This library is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU Lesser General Public License version *
13
* 2.1 as published by the Free Software Foundation. *
14
* *
15
* This library is distributed in the hope that it will be useful, but *
16
* WITHOUT ANY WARRANTY; without even the implied warranty of *
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18
* Lesser General Public License for more details. *
19
* *
20
* You should have received a copy of the GNU Lesser General Public *
21
* License along with this library; if not, write to the Free Software *
22
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
23
* 02110-1301 USA *
24
* *
25
* Alternatively, this file is available under the Mozilla Public *
26
* License Version 1.1. You may obtain a copy of the License at *
27
* http://www.mozilla.org/MPL/ *
28
***************************************************************************/
29
30
#ifndef TAGLIB_APEPROPERTIES_H
31
#define TAGLIB_APEPROPERTIES_H
32
33
#include "
taglib_export.h
"
34
#include "
audioproperties.h
"
35
36
namespace
TagLib {
37
38
namespace
APE {
39
40
class
File
;
41
43
49
class
TAGLIB_EXPORT
Properties
:
public
AudioProperties
50
{
51
public
:
56
Properties
(
File
*f,
ReadStyle
style = Average);
57
61
virtual
~
Properties
();
62
63
// Reimplementations.
64
65
virtual
int
length()
const
;
66
virtual
int
bitrate()
const
;
67
virtual
int
sampleRate()
const
;
68
virtual
int
channels()
const
;
69
73
int
bitsPerSample()
const
;
74
78
int
version()
const
;
79
80
private
:
81
Properties
(
const
Properties
&);
82
Properties
&operator=(
const
Properties
&);
83
84
void
read();
85
86
long
findDescriptor();
87
long
findID3v2();
88
89
void
analyzeCurrent();
90
void
analyzeOld();
91
92
class
PropertiesPrivate;
93
PropertiesPrivate *d;
94
};
95
}
96
}
97
98
#endif