Read the Docs Template Documentation, Release
esp_err_t
audio_pipeline_link
pipeline
,
const
char *
link_tag
[],
int
link_num
)
The audio_element added to audio_pipeline will be unconnected before it is called by this function. Based on el-
ement’s
name
already registered by
audio_pipeline_register
, the path of the data will be linked in the
order of the link_tag. Element at index 0 is first, and index
link_num -1
is final. As well as audio_pipeline
will subscribe all element’s events.
Return
• ESP_OK on success
• ESP_FAIL when any errors
Parameters
•
pipeline
: The Audio Pipeline Handle
•
link_tag
: Array of element
name
was registered by
audio_pipeline_register
•
link_num
: Total number of elements of the
link_tag
array
esp_err_t
audio_pipeline_unlink
pipeline
)
Removes the connection of the elements, as well as unsubscribe events.
Return
• ESP_OK on success
• ESP_FAIL when any errors
Parameters
•
pipeline
: The Audio Pipeline Handle
esp_err_t
audio_pipeline_remove_listener
pipeline
)
Remove event listener from this audio_pipeline.
Return
• ESP_OK on success
• ESP_FAIL when any errors
Parameters
•
pipeline
: The Audio Pipeline Handle
esp_err_t
audio_pipeline_set_listener
pipeline
,
evt
)
Set event listner for this audio_pipeline, any event from this pipeline can be listen to by
evt
Return
• ESP_OK on success
• ESP_FAIL when any errors
Parameters
•
pipeline
: The Audio Pipeline Handle
•
evt
: The Event Handle
44
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...