8 enum ID3TypeSelection { SELECT_ID3V1=0b001, SELECT_ID3V2=0b010, SELECT_ID3=0b011, SELECT_ICY=0b100, SELECT_ANY=0b111 };
11 enum MetaDataType { Title, Artist, Album, Genre, Name, Description };
14 static const char* MetaDataTypeStr[] = {
"Title",
"Artist",
"Album",
"Genre",
"Name",
"Description"};
18 return MetaDataTypeStr[t];
24 for (i = 0; i < n && s[i] !=
'\0'; i++)
39 virtual void setCallback(
void (*fn)(
MetaDataType info,
const char* str,
int len)) = 0 ;
41 virtual void begin() = 0;
43 virtual void end() = 0;
45 virtual size_t write(
const uint8_t *data,
size_t len) = 0;
47 virtual void setIcyMetaInt(
int value){}