[alsa-devel] distinguish events based on input ports
Hi everybody,
I've just started writing my first little program with alsa, and I had a question regarding the use of input(read) ports. What I want to do is distinguish events based on the input port they came through. Since the destination of the event is mostly set to 'broadcast', I cannot extract this information from the event itself. I would like to know if there is another way to do this, or if it is simply impossible.
Thanks for your help,
Greetings,
Lieven
Lieven Moors wrote:
I had a question regarding the use of input(read) ports. What I want to do is distinguish events based on the input port they came through. Since the destination of the event is mostly set to 'broadcast', I cannot extract this information from the event itself.
Yes you can; when delivering broadcast or to-all-subscribers events, ALSA sets the event's destination field to the actual destination.
HTH Clemens
participants (2)
-
Clemens Ladisch
-
Lieven Moors