TagLib API Documentation
eventtimingcodesframe.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2014 by Urs Fleisch
3 email : ufleisch@users.sourceforge.net
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_EVENTTIMINGCODESFRAME_H
27#define TAGLIB_EVENTTIMINGCODESFRAME_H
28
29#include "tlist.h"
30#include "id3v2frame.h"
31
32namespace TagLib {
33
34 namespace ID3v2 {
35
37
41 {
42 friend class FrameFactory;
43
44 public:
45
51 Unknown = 0x00,
54 AbsoluteMpegFrames = 0x01,
57 AbsoluteMilliseconds = 0x02
58 };
59
65 enum EventType {
66 Padding = 0x00,
67 EndOfInitialSilence = 0x01,
68 IntroStart = 0x02,
69 MainPartStart = 0x03,
70 OutroStart = 0x04,
71 OutroEnd = 0x05,
72 VerseStart = 0x06,
73 RefrainStart = 0x07,
74 InterludeStart = 0x08,
75 ThemeStart = 0x09,
76 VariationStart = 0x0a,
77 KeyChange = 0x0b,
78 TimeChange = 0x0c,
79 MomentaryUnwantedNoise = 0x0d,
80 SustainedNoise = 0x0e,
81 SustainedNoiseEnd = 0x0f,
82 IntroEnd = 0x10,
83 MainPartEnd = 0x11,
84 VerseEnd = 0x12,
85 RefrainEnd = 0x13,
86 ThemeEnd = 0x14,
87 Profanity = 0x15,
88 ProfanityEnd = 0x16,
89 NotPredefinedSynch0 = 0xe0,
90 NotPredefinedSynch1 = 0xe1,
91 NotPredefinedSynch2 = 0xe2,
92 NotPredefinedSynch3 = 0xe3,
93 NotPredefinedSynch4 = 0xe4,
94 NotPredefinedSynch5 = 0xe5,
95 NotPredefinedSynch6 = 0xe6,
96 NotPredefinedSynch7 = 0xe7,
97 NotPredefinedSynch8 = 0xe8,
98 NotPredefinedSynch9 = 0xe9,
99 NotPredefinedSynchA = 0xea,
100 NotPredefinedSynchB = 0xeb,
101 NotPredefinedSynchC = 0xec,
102 NotPredefinedSynchD = 0xed,
103 NotPredefinedSynchE = 0xee,
104 NotPredefinedSynchF = 0xef,
105 AudioEnd = 0xfd,
106 AudioFileEnds = 0xfe
107 };
108
113 SynchedEvent(unsigned int ms, EventType t) : time(ms), type(t) {}
114 unsigned int time;
116 };
117
122
127
131 explicit EventTimingCodesFrame(const ByteVector &data);
132
137
140
144 String toString() const override;
145
150
155
162
169
170 protected:
171 // Reimplementations.
172
173 void parseFields(const ByteVector &data) override;
174 ByteVector renderFields() const override;
175
176 private:
181
184 std::unique_ptr<EventTimingCodesFramePrivate> d;
185 };
186
187 } // namespace ID3v2
188} // namespace TagLib
189#endif
A byte vector.
Definition tbytevector.h:46
ID3v2 event timing codes frame.
Definition eventtimingcodesframe.h:41
EventTimingCodesFrame(const ByteVector &data)
EventTimingCodesFrame & operator=(const EventTimingCodesFrame &)=delete
TimestampFormat timestampFormat() const
EventTimingCodesFrame(const EventTimingCodesFrame &)=delete
SynchedEventList synchedEvents() const
void setTimestampFormat(TimestampFormat f)
void setSynchedEvents(const SynchedEventList &e)
void parseFields(const ByteVector &data) override
EventType
Definition eventtimingcodesframe.h:65
String toString() const override
TimestampFormat
Definition eventtimingcodesframe.h:49
ByteVector renderFields() const override
A factory for creating ID3v2 frames during parsing.
Definition id3v2framefactory.h:68
ID3v2 frame implementation.
Definition id3v2frame.h:57
An implementation of ID3v2 headers.
Definition id3v2header.h:49
A generic, implicitly shared list.
Definition tlist.h:54
A wide string class suitable for unicode.
Definition tstring.h:83
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
Definition eventtimingcodesframe.h:112
SynchedEvent(unsigned int ms, EventType t)
Definition eventtimingcodesframe.h:113
unsigned int time
Definition eventtimingcodesframe.h:114
EventType type
Definition eventtimingcodesframe.h:115
#define TAGLIB_EXPORT
Definition taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55