audio event interface listening to multiple sources

bs-eng
Posts: 30
Joined: Wed Oct 28, 2020 8:19 pm

audio event interface listening to multiple sources

Postby bs-eng » 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:
  1. 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:

    Code: Select all

    vTaskDelay(100/portTICK_PERIOD_MS);
    However I do not want to wait until the next event is processed.
  2. 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?
Thanks for any pointers and hints!
Cheers
JR

Who is online

Users browsing this forum: No registered users and 25 guests