TagLib  1.13.1
trueaudioproperties.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2006 by Lukáš Lalinský
3 email : lalinsky@gmail.com
4
5 copyright : (C) 2004 by Allan Sandfeld Jensen
6 email : kde@carewolf.org
7 (original MPC 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_TRUEAUDIOPROPERTIES_H
31#define TAGLIB_TRUEAUDIOPROPERTIES_H
32
33#include "audioproperties.h"
34
35namespace TagLib {
36
37 namespace TrueAudio {
38
39 static const unsigned int HeaderSize = 18;
40
42
49 {
50 public:
55 Properties(const ByteVector &data, long streamLength, ReadStyle style = Average);
56
60 virtual ~Properties();
61
70 TAGLIB_DEPRECATED virtual int length() const;
71
78 // BIC: make virtual
79 int lengthInSeconds() const;
80
86 // BIC: make virtual
88
92 virtual int bitrate() const;
93
97 virtual int sampleRate() const;
98
102 virtual int channels() const;
103
107 int bitsPerSample() const;
108
112 unsigned int sampleFrames() const;
113
117 int ttaVersion() const;
118
119 private:
120 Properties(const Properties &);
121 Properties &operator=(const Properties &);
122
123 void read(const ByteVector &data, long streamLength);
124
125 class PropertiesPrivate;
126 PropertiesPrivate *d;
127 };
128 } // namespace TrueAudio
129} // namespace TagLib
130
131#endif
A simple, abstract interface to common audio properties.
Definition: audioproperties.h:43
ReadStyle
Definition: audioproperties.h:53
A byte vector.
Definition: tbytevector.h:46
An implementation of audio property reading for TrueAudio.
Definition: trueaudioproperties.h:49
unsigned int sampleFrames() const
virtual TAGLIB_DEPRECATED int length() const
virtual int sampleRate() const
virtual int bitrate() const
Properties(const ByteVector &data, long streamLength, ReadStyle style=Average)
virtual int channels() const
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_DEPRECATED
Definition: taglib.h:54
#define TAGLIB_EXPORT
Definition: taglib_export.h:40