Read the Docs Template Documentation, Release
HTTP_STREAM_ON_RESPONSE
The event handler will be called when HTTP Client is receiving data If the fucntion return the value (-1:
ESP_FAIL), HTTP Client will be stopped If the fucntion return the value > 0, HTTP Stream will ignore
the read function If the fucntion return the value = 0, HTTP Stream continue read data from HTTP Server
HTTP_STREAM_POST_REQUEST
The event handler will be called after HTTP Client send header and body to the serve, before fetching the
headers
HTTP_STREAM_FINISH_REQUEST
The event handler will be called after HTTP Client fetch the header and ready to read HTTP body
2.2.3 FatFs Stream
Header File
•
audio_stream/include/fatfs_stream.h
Functions
fatfs_stream_init
*
config
)
Create a handle to an Audio Element to stream data from FatFs to another Element or get data from other
elements written to FatFs, depending on the configuration the stream type, either AUDIO_STREAM_READER
or AUDIO_STREAM_WRITER.
Return
The Audio Element handle
Parameters
•
config
: The configuration
Structures
struct fatfs_stream_cfg_t
FATFS Stream configurations, if any entry is zero then the configuration will be set to default values.
Public Members
type
Stream type
int
buf_sz
Audio Element Buffer size
2.3 Codecs
2.3.1 MP3 Decoder
Decode an audio data stream provided in MP3 format.
2.3. Codecs
57
Summary of Contents for ESP32-LyraT
Page 1: ...Read the Docs Template Documentation Release Read the Docs Jul 01 2018...
Page 2: ......
Page 4: ...ii...
Page 6: ...Read the Docs Template Documentation Release 2 Contents...
Page 92: ...Read the Docs Template Documentation Release 88 Chapter 4 Resources...
Page 94: ...Read the Docs Template Documentation Release 90 Chapter 5 Copyrights and Licenses...