Add inline ID3 decoder w/callback interface
ID3 tags can now automatically give your app a callback with different tag types without any additional work on your application. See the PlayMP3 example for a very simple example of AudioFileSourceID3's use.
This commit is contained in:
1 parent
fece88a9be
commit
75268b5e3b
6 files changed
+309
-2
No files matched your search
@@ -80,6 +80,9 @@ AudioOutputI2SNoDAC *out;
|
||||
|
||||
````
|
||||
|
||||
## AudioFileSourceID3 - ID3 stream parser filter with a user-speficied callback
|
||||
This class, which takes as input any other AudioFileSource and outputs an AudioFileSource suitable for any decoder, automatically parses out ID3 tags from MP3 files. You need to specify a callback function, which will be called as tags are decoded and allow you to update your UI state with this information. See the PlayMP3FromSPIFFS example for more information.
|
||||
|
||||
## AudioGenerator classes
|
||||
AudioGenerator: Base class for all file decoders. Takes a AudioFileSource and an AudioOutput object to get the data from and to write decoded samples to. Call its loop() function as often as you can to ensure the buffers are always kept full and your music won't skip.
|
||||
|
||||
|
||||
Reference in new issue
Block a user