Read the Docs Template Documentation, Release
esp_err_t
audio_element_wait_for_buffer
el
, int
size_expect
, TickType_t
timeout
)
This function will wait until the sizeof the output ringbuffer is greater than or equal to
size_expect
If the
timeout period has been exceeded and ringbuffer output has not yet reached
size_expect
then the function
will return
ESP_FAIL
Return
• ESP_OK
• ESP_FAIL
Parameters
•
el
: The audio element handle
•
size_expect
: The size expect
•
timeout
: The timeout
esp_err_t
audio_element_report_status
el
,
sta-
tus
)
Element will sendout event (status) to event by this function.
Return
• ESP_OK
• ESP_FAIL
Parameters
•
el
: The audio element handle
•
status
: The status
esp_err_t
audio_element_report_info
el
)
Element will sendout event (information) to event by this function.
Return
• ESP_OK
• ESP_FAIL
Parameters
•
el
: The audio element handle
esp_err_t
audio_element_report_codec_fmt
el
)
Element will sendout event (codec format) to event by this function.
Return
• ESP_OK
• ESP_FAIL
Parameters
•
el
: The audio element handle
esp_err_t
audio_element_set_input_timeout
el
, TickType_t
timeout
)
Set input read timeout (default is
portMAX_DELAY
)
34
Chapter 2. API Reference
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...