arduino-audio-tools
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
MetaDataFilter< Decoder > Class Template Reference

Class which filters out ID3v1 and ID3v2 Metadata and provides only the audio data to the decoder. More...

#include <MetaDataFilter.h>

Classes

struct  ID3v2
 ID3 verion 2 TAG Header (10 bytes) More...
 

Public Member Functions

 MetaDataFilter ()=default
 Default Constructor.
 
 MetaDataFilter (Decoder *decoder)
 Constructor which assigns the decoder.
 
void begin ()
 (Re)starts the processing
 
void setDecoder (Decoder *decoder)
 Defines the decoder to which we write the data.
 
size_t write (uint8_t *data, size_t len)
 Writes the data to the decoder.
 

Protected Types

enum  MetaType { TAG , TAG_PLUS , ID3 }
 

Protected Member Functions

uint32_t calcSizeID3v2 (uint8_t chars[4])
 
bool find (const char *str, size_t len, int &pos, MetaType &type)
 find the tag position in the string;
 
bool findTag (uint8_t *data, size_t len, int &pos_tag, int &meta_len)
 determines if the data conatins a ID3v1 or ID3v2 tag
 

Protected Attributes

Decoder * p_decoder =nullptr
 
int start = 0
 
struct audio_tools::MetaDataFilter::ID3v2 tagv2
 

Detailed Description

template<class Decoder>
class audio_tools::MetaDataFilter< Decoder >

Class which filters out ID3v1 and ID3v2 Metadata and provides only the audio data to the decoder.

Author
Phil Schatzmann

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