ID3v2 synchronized lyrics frame. More...
#include <synchronizedlyricsframe.h>
Classes | |
struct | SynchedText |
Public Types | |
enum | TimestampFormat { Unknown = 0x00 , AbsoluteMpegFrames = 0x01 , AbsoluteMilliseconds = 0x02 } |
enum | Type { Other = 0x00 , Lyrics = 0x01 , TextTranscription = 0x02 , Movement = 0x03 , Events = 0x04 , Chord = 0x05 , Trivia = 0x06 , WebpageUrls = 0x07 , ImageUrls = 0x08 } |
using | SynchedTextList = TagLib::List< SynchedText > |
Protected Member Functions | |
void | parseFields (const ByteVector &data) override |
ByteVector | renderFields () const override |
Protected Member Functions inherited from TagLib::ID3v2::Frame | |
Frame (const ByteVector &data) | |
Frame (Header *h) | |
void | setHeader (Header *h, bool deleteCurrent=true) |
void | parse (const ByteVector &data) |
virtual void | parseFields (const ByteVector &data)=0 |
virtual ByteVector | renderFields () const =0 |
ByteVector | fieldData (const ByteVector &frameData) const |
String | readStringField (const ByteVector &data, String::Type encoding, int *position=nullptr) |
String::Type | checkTextEncoding (const StringList &fields, String::Type encoding) const |
virtual PropertyMap | asProperties () const |
Friends | |
class | FrameFactory |
Additional Inherited Members | |
Static Public Member Functions inherited from TagLib::ID3v2::Frame | |
static ByteVector | textDelimiter (String::Type t) |
static ByteVector | keyToFrameID (const String &) |
static String | frameIDToKey (const ByteVector &) |
Static Public Attributes inherited from TagLib::ID3v2::Frame | |
static const String | instrumentPrefix |
static const String | commentPrefix |
static const String | lyricsPrefix |
static const String | urlPrefix |
Static Protected Member Functions inherited from TagLib::ID3v2::Frame | |
static void | splitProperties (const PropertyMap &original, PropertyMap &singleFrameProperties, PropertyMap &tiplProperties, PropertyMap &tmclProperties) |
List of synchronized lyrics.
Specifies the timestamp format used.
Enumerator | |
---|---|
Unknown | The timestamp is of unknown format. |
AbsoluteMpegFrames | The timestamp represents the number of MPEG frames since the beginning of the audio stream. |
AbsoluteMilliseconds | The timestamp represents the number of milliseconds since the beginning of the audio stream. |
Specifies the type of text contained.
|
explicit |
Construct an empty synchronized lyrics frame that will use the text encoding encoding.
|
explicit |
Construct a synchronized lyrics frame based on the data in data.
|
override |
Destroys this SynchronizedLyricsFrame instance.
|
delete |
String TagLib::ID3v2::SynchronizedLyricsFrame::description | ( | ) | const |
Returns the description of this synchronized lyrics frame.
ByteVector TagLib::ID3v2::SynchronizedLyricsFrame::language | ( | ) | const |
Returns the language encoding as a 3 byte encoding as specified by ISO-639-2.
|
delete |
|
overrideprotectedvirtual |
Called by parse() to parse the field data. It makes this information available through the public API. This must be overridden by the subclasses.
Implements TagLib::ID3v2::Frame.
|
overrideprotectedvirtual |
Render the field data back to a binary format in a ByteVector. This must be overridden by subclasses.
Implements TagLib::ID3v2::Frame.
void TagLib::ID3v2::SynchronizedLyricsFrame::setDescription | ( | const String & | s | ) |
Sets the description of the synchronized lyrics frame to s.
void TagLib::ID3v2::SynchronizedLyricsFrame::setLanguage | ( | const ByteVector & | languageEncoding | ) |
Set the language using the 3 byte language code from ISO-639-2 to languageEncoding.
void TagLib::ID3v2::SynchronizedLyricsFrame::setSynchedText | ( | const SynchedTextList & | t | ) |
Sets the text with the time stamps.
void TagLib::ID3v2::SynchronizedLyricsFrame::setTextEncoding | ( | String::Type | encoding | ) |
Sets the text encoding to be used when rendering this frame to encoding.
void TagLib::ID3v2::SynchronizedLyricsFrame::setTimestampFormat | ( | TimestampFormat | f | ) |
Set the timestamp format.
void TagLib::ID3v2::SynchronizedLyricsFrame::setType | ( | Type | t | ) |
Set the type of text contained.
SynchedTextList TagLib::ID3v2::SynchronizedLyricsFrame::synchedText | ( | ) | const |
Returns the text with the time stamps.
String::Type TagLib::ID3v2::SynchronizedLyricsFrame::textEncoding | ( | ) | const |
Returns the text encoding that will be used in rendering this frame. This defaults to the type that was either specified in the constructor or read from the frame when parsed.
TimestampFormat TagLib::ID3v2::SynchronizedLyricsFrame::timestampFormat | ( | ) | const |
Returns the timestamp format.
|
overridevirtual |
Returns the description of this synchronized lyrics frame.
Implements TagLib::ID3v2::Frame.
Type TagLib::ID3v2::SynchronizedLyricsFrame::type | ( | ) | const |
Returns the type of text contained.
|
friend |