audio event interface listening to multiple sources
Posted: Wed Oct 28, 2020 9:43 pm
Hi!
I am new to ESP ADF. I tried many examples and are confident with most components by now.
One thing that I have not yet understood is the audio event interface.
I am trying to collect events from different sources (periph, audio-pipeline) into one in order to handle those events in one place. This is necessary due to system architecture.
My question:
Cheers
JR
I am new to ESP ADF. I tried many examples and are confident with most components by now.
One thing that I have not yet understood is the audio event interface.
I am trying to collect events from different sources (periph, audio-pipeline) into one in order to handle those events in one place. This is necessary due to system architecture.
My question:
- Does the audio_event_iface_listen() block until an event is received, or does it return immediately?
I am asking because I see in all examples that use this interface function to also add a delay until the next event is handled. Typically in the form of:However I do not want to wait until the next event is processed.Code: Select all
vTaskDelay(100/portTICK_PERIOD_MS);
- How can I get the listener to subscribe to more than one source? If I want periph-events and audiopipeline-events from the same event interface?
Cheers
JR