TagLib  1.13.1
mp4properties.h
Go to the documentation of this file.
1/**************************************************************************
2 copyright : (C) 2007 by Lukáš Lalinský
3 email : lalinsky@gmail.com
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_MP4PROPERTIES_H
27#define TAGLIB_MP4PROPERTIES_H
28
29#include "taglib_export.h"
30#include "audioproperties.h"
31
32namespace TagLib {
33 namespace MP4 {
34 class Atoms;
35 class File;
36
39 {
40 public:
41 enum Codec {
45 };
46
47 Properties(File *file, Atoms *atoms, ReadStyle style = Average);
48 virtual ~Properties();
49
58 TAGLIB_DEPRECATED virtual int length() const;
59
66 // BIC: make virtual
67 int lengthInSeconds() const;
68
74 // BIC: make virtual
76
80 virtual int bitrate() const;
81
85 virtual int sampleRate() const;
86
90 virtual int channels() const;
91
95 virtual int bitsPerSample() const;
96
100 bool isEncrypted() const;
101
105 Codec codec() const;
106
107 private:
108 void read(File *file, Atoms *atoms);
109
110 class PropertiesPrivate;
111 PropertiesPrivate *d;
112 };
113 } // namespace MP4
114} // namespace TagLib
115#endif
AudioProperties(ReadStyle style)
ReadStyle
Definition audioproperties.h:53
@ Average
Read more of the file and make better values guesses.
Definition audioproperties.h:57
Definition mp4file.h:47
Properties(File *file, Atoms *atoms, ReadStyle style=Average)
virtual int channels() const
virtual int bitsPerSample() const
virtual int sampleRate() const
bool isEncrypted() const
int lengthInSeconds() const
Codec
Definition mp4properties.h:41
@ Unknown
Definition mp4properties.h:42
@ AAC
Definition mp4properties.h:43
@ ALAC
Definition mp4properties.h:44
virtual TAGLIB_DEPRECATED int length() const
int lengthInMilliseconds() const
virtual int bitrate() const
An implementation of MP4 (AAC, ALAC, ...) metadata.
Definition mp4coverart.h:35
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