arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MetaDataID3V2 Class Reference

Simple ID3 Meta Data API which supports ID3 V2: We only support the "TALB", "TOPE", "TIT2", "TCON" tags. More...

#include <MetaDataID3.h>

Inheritance diagram for MetaDataID3V2:
MetaDataID3Base

Public Member Functions

void begin ()
 (re)starts the processing
 
void end ()
 Ends the processing and releases the memory.
 
ID3v2FrameString frameHeader ()
 provides the current frame header
 
ID3v2 header ()
 provides the ID3v2 header
 
bool isProcessed ()
 returns true if the tag has been provided
 
void setCallback (void(*fn)(MetaDataType info, const char *str, int len))
 
size_t write (const uint8_t *data, size_t len)
 provide the (partial) data which might contain the meta data
 

Protected Member Functions

uint32_t calcSize (uint8_t chars[4])
 
bool encodingIsSupported ()
 For the time beeing we support only ASCII and UTF8.
 
int findTag (const char *tag, const char *str, size_t len)
 find the tag position in the string - if not found we return -1;
 
bool isAscii (int l)
 Make sure that the result is a valid ASCII string.
 
void processnotifyAudioChange ()
 executes the callbacks
 
void processPartialTagAtTail (const uint8_t *data, size_t len)
 We have the beginning of the metadata and need to process the remainder.
 
void processTagNotFound (const uint8_t *data, size_t len)
 try to find the metatdata tag in the provided data
 
int strpos (char *str, const char *target)
 

Protected Attributes

const char * actual_tag
 
bool armed = false
 
void(* callback )(MetaDataType info, const char *title, int len)
 
uint64_t end_len = 0
 
ID3v2FrameString frame_header
 
char result [256]
 
ParseStatus status = TagNotFound
 
bool tag_active = false
 
bool tag_processed = false
 
ID3v2 tagv2
 
uint64_t total_len = 0
 
int use_bytes_of_next_write = 0
 

Detailed Description

Simple ID3 Meta Data API which supports ID3 V2: We only support the "TALB", "TOPE", "TIT2", "TCON" tags.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: