| TagLib 1.13 |  |

aiffproperties.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2008 by Scott Wheeler
3 email : wheeler@kde.org
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_AIFFPROPERTIES_H
27#define TAGLIB_AIFFPROPERTIES_H
28
29#include "audioproperties.h"
30
31 namespace TagLib {
32
33 namespace RIFF {
34
35 namespace AIFF {
36
37 class File;
38
40
46 class TAGLIB_EXPORT Properties : public AudioProperties
47 {
48 public:
55 TAGLIB_DEPRECATED Properties(const ByteVector &data, ReadStyle style);
56
61 Properties(File *file, ReadStyle style);
62
66 virtual ~Properties();
67
76 TAGLIB_DEPRECATED virtual int length() const;
77
84 // BIC: make virtual
85 int lengthInSeconds() const;
86
92 // BIC: make virtual
93 int lengthInMilliseconds() const;
94
98 virtual int bitrate() const;
99
103 virtual int sampleRate() const;
104
108 virtual int channels() const;
109
113 int bitsPerSample() const;
114
122 TAGLIB_DEPRECATED int sampleWidth() const;
123
127 unsigned int sampleFrames() const;
128
132 bool isAiffC() const;
133
142 ByteVector compressionType() const;
143
151 String compressionName() const;
152
153 private:
154 Properties(const Properties &);
155 Properties &operator=(const Properties &);
156
157 void read(File *file);
158
159 class PropertiesPrivate;
160 PropertiesPrivate *d;
161 };
162 }
163 }
164}
165
166#endif
audioproperties.h
TagLib::AudioProperties
A simple, abstract interface to common audio properties.
Definition: audioproperties.h:43
TagLib::AudioProperties::ReadStyle
ReadStyle
Definition: audioproperties.h:53
TagLib::ByteVector
A byte vector.
Definition: tbytevector.h:46
TagLib::RIFF::AIFF::File
An implementation of TagLib::File with AIFF specific methods.
Definition: aifffile.h:58
TagLib::RIFF::AIFF::Properties
An implementation of audio property reading for AIFF.
Definition: aiffproperties.h:47
TagLib::RIFF::AIFF::Properties::channels
virtual int channels() const
TagLib::RIFF::AIFF::Properties::bitrate
virtual int bitrate() const
TagLib::RIFF::AIFF::Properties::isAiffC
bool isAiffC() const
TagLib::RIFF::AIFF::Properties::~Properties
virtual ~Properties()
TagLib::RIFF::AIFF::Properties::lengthInMilliseconds
int lengthInMilliseconds() const
TagLib::RIFF::AIFF::Properties::Properties
TAGLIB_DEPRECATED Properties(const ByteVector &data, ReadStyle style)
TagLib::RIFF::AIFF::Properties::bitsPerSample
int bitsPerSample() const
TagLib::RIFF::AIFF::Properties::compressionName
String compressionName() const
TagLib::RIFF::AIFF::Properties::compressionType
ByteVector compressionType() const
TagLib::RIFF::AIFF::Properties::sampleFrames
unsigned int sampleFrames() const
TagLib::RIFF::AIFF::Properties::lengthInSeconds
int lengthInSeconds() const
TagLib::RIFF::AIFF::Properties::length
virtual TAGLIB_DEPRECATED int length() const
TagLib::RIFF::AIFF::Properties::Properties
Properties(File *file, ReadStyle style)
TagLib::RIFF::AIFF::Properties::sampleWidth
TAGLIB_DEPRECATED int sampleWidth() const
TagLib::RIFF::AIFF::Properties::sampleRate
virtual int sampleRate() const
TagLib::String
A wide string class suitable for unicode.
Definition: tstring.h:85
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
TAGLIB_DEPRECATED
#define TAGLIB_DEPRECATED
Definition: taglib.h:54
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40