Read the Docs Template Documentation, Release
Parameters
•
el
: The audio element handle
•
wait_for_rb_threshold
: The wait for rb threshold (0 .. 1)
•
timeout
: The timeout
esp_err_t
audio_element_msg_set_listener
el
,
listener
)
This function will add a
listener
to listen to all events from audio element
el
Any event from el-
>external_event will be send to the
listener
.
Return
• ESP_OK
• ESP_FAIL
Parameters
•
el
: The audio element handle
•
listener
: The event will be listen to
esp_err_t
audio_element_msg_remove_listener
el
,
listener
)
Remove listener out of el, no new events will be sent to the listene.
Return
• ESP_OK
• ESP_FAIL
Parameters
•
el
: The audio element handle
•
listener
: The listener
esp_err_t
audio_element_set_input_ringbuf
el
,
rb
)
Set Element input ringbuffer.
Return
• ESP_OK
• ESP_FAIL
Parameters
•
el
: The audio element handle
•
rb
: The ringbuffer handle
audio_element_get_input_ringbuf
el
)
Get Element input ringbuffer.
Return
ringbuf_handle_t
Parameters
•
el
: The audio element handle
32
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...