arduino-audio-tools
|
Simple ID3 Meta Data API which supports ID3 V1. More...
#include <MetaDataID3.h>
Public Member Functions | |
void | begin () |
(re)starts the processing | |
void | end () |
Ends the processing and releases the memory. | |
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 | |
int | findTag (const char *tag, const char *str, size_t len) |
find the tag position in the string - if not found we return -1; | |
void | processnotifyAudioChange () |
executes the callbacks | |
void | processPartialTagAtTail (const uint8_t *data, size_t len) |
We had part of the start tag at the end of the last write, now we get the full data. | |
void | processTagFoundPartial (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 | |
Protected Attributes | |
bool | armed = false |
void(* | callback )(MetaDataType info, const char *title, int len) |
ParseStatus | status = TagNotFound |
ID3v1 * | tag = nullptr |
ID3v1Enhanced * | tag_ext = nullptr |
char | tag_str [5] = "" |
int | use_bytes_of_next_write = 0 |
Simple ID3 Meta Data API which supports ID3 V1.