| TagLib 1.13 |  |

wavproperties.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_WAVPROPERTIES_H
27#define TAGLIB_WAVPROPERTIES_H
28
29#include "taglib.h"
30#include "audioproperties.h"
31
32 namespace TagLib {
33
34 class ByteVector;
35
36 namespace RIFF {
37
38 namespace WAV {
39
40 class File;
41
43
49 class TAGLIB_EXPORT Properties : public AudioProperties
50 {
51 public:
58 TAGLIB_DEPRECATED Properties(const ByteVector &data, ReadStyle style);
59
66 TAGLIB_DEPRECATED Properties(const ByteVector &data, unsigned int streamLength, ReadStyle style);
67
72 Properties(File *file, ReadStyle style);
73
77 virtual ~Properties();
78
87 TAGLIB_DEPRECATED virtual int length() const;
88
95 // BIC: make virtual
96 int lengthInSeconds() const;
97
103 // BIC: make virtual
104 int lengthInMilliseconds() const;
105
109 virtual int bitrate() const;
110
114 virtual int sampleRate() const;
115
119 virtual int channels() const;
120
124 int bitsPerSample() const;
125
133 TAGLIB_DEPRECATED int sampleWidth() const;
134
138 unsigned int sampleFrames() const;
139
148 int format() const;
149
150 private:
151 Properties(const Properties &);
152 Properties &operator=(const Properties &);
153
154 void read(File *file);
155
156 class PropertiesPrivate;
157 PropertiesPrivate *d;
158 };
159 }
160 }
161}
162
163#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::WAV::File
An implementation of TagLib::File with WAV specific methods.
Definition: wavfile.h:59
TagLib::RIFF::WAV::Properties
An implementation of audio property reading for WAV.
Definition: wavproperties.h:50
TagLib::RIFF::WAV::Properties::~Properties
virtual ~Properties()
TagLib::RIFF::WAV::Properties::sampleWidth
TAGLIB_DEPRECATED int sampleWidth() const
TagLib::RIFF::WAV::Properties::lengthInSeconds
int lengthInSeconds() const
TagLib::RIFF::WAV::Properties::Properties
TAGLIB_DEPRECATED Properties(const ByteVector &data, ReadStyle style)
TagLib::RIFF::WAV::Properties::bitrate
virtual int bitrate() const
TagLib::RIFF::WAV::Properties::channels
virtual int channels() const
TagLib::RIFF::WAV::Properties::sampleRate
virtual int sampleRate() const
TagLib::RIFF::WAV::Properties::Properties
Properties(File *file, ReadStyle style)
TagLib::RIFF::WAV::Properties::Properties
TAGLIB_DEPRECATED Properties(const ByteVector &data, unsigned int streamLength, ReadStyle style)
TagLib::RIFF::WAV::Properties::sampleFrames
unsigned int sampleFrames() const
TagLib::RIFF::WAV::Properties::length
virtual TAGLIB_DEPRECATED int length() const
TagLib::RIFF::WAV::Properties::lengthInMilliseconds
int lengthInMilliseconds() const
TagLib::RIFF::WAV::Properties::format
int format() const
TagLib::RIFF::WAV::Properties::bitsPerSample
int bitsPerSample() const
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
taglib.h
TAGLIB_DEPRECATED
#define TAGLIB_DEPRECATED
Definition: taglib.h:54
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40