1
/***************************************************************************
2
copyright : (C) 2006 by Lukáš Lalinský
3
email : lalinsky@gmail.com
5
copyright : (C) 2004 by Allan Sandfeld Jensen
6
email : kde@carewolf.org
7
(original MPC implementation)
8
***************************************************************************/
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. *
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. *
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, *
24
***************************************************************************/
26
#ifndef TAGLIB_TTAPROPERTIES_H
27
#define TAGLIB_TTAPROPERTIES_H
29
#include "audioproperties.h"
36
static const TagLib::uint HeaderSize = 18;
38
//! An implementation of audio property reading for TTA
41
* This reads the data from an TTA stream found in the AudioProperties
45
class Properties : public AudioProperties
49
* Create an instance of TTA::Properties with the data read from the
52
Properties(const ByteVector &data, long streamLength, ReadStyle style = Average);
55
* Destroys this TTA::Properties instance.
57
virtual ~Properties();
61
virtual int length() const;
62
virtual int bitrate() const;
63
virtual int sampleRate() const;
64
virtual int channels() const;
67
* Returns number of bits per sample.
69
int bitsPerSample() const;
72
* Returns the major version number.
74
int ttaVersion() const;
79
class PropertiesPrivate;