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
Содержание ESP32-LyraT
Страница 1: ...Read the Docs Template Documentation Release Read the Docs Jul 01 2018...
Страница 2: ......
Страница 4: ...ii...
Страница 6: ...Read the Docs Template Documentation Release 2 Contents...
Страница 82: ...Read the Docs Template Documentation Release Fig 3 5 ESP32 LyraT V4 3 Board Layout 78 Chapter 3 Design Guide...
Страница 92: ...Read the Docs Template Documentation Release 88 Chapter 4 Resources...
Страница 94: ...Read the Docs Template Documentation Release 90 Chapter 5 Copyrights and Licenses...
Страница 96: ...Read the Docs Template Documentation Release Fig 6 1 Espressif Audio Development Framework 92 Chapter 6 About...