All of lore.kernel.org
 help / color / mirror / Atom feed
* ALSA and event notification schemas
@ 2005-07-25 17:09 Alfredo
  2005-07-26  7:17 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Alfredo @ 2005-07-25 17:09 UTC (permalink / raw)
  To: alsa-devel@lists.sourceforge.net

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

Hello, I'm involved in a development project consisting of a
multimedia/networked component using event driven model in a C++ Linux
environment (1 thread than manages all the events using an event loop).



The events that the component must handle are:

1. Sockets events.

2. Timer events.

3. Audio events ( event = when the next buffer is filled with audio from
the user, notify the component. Then the component will transfer the
audio buffer using a udp socket to another distributed component).

4. Key press and release events (Push To Talk key)



What is the best way to handle all this events in a Linux environment?

I have found that libevent is a very interesting library:
http://www.monkey.org/~provos/libevent/

"The libevent API provides a mechanism to execute a callback function
when a specific event occurs on a file descriptor or after a timeout has
been reached".

This resolves the sockets and timer events. I'm not sure if this
approach works well with ALSA (for audio events). I have read that ALSA
provides asynch IO (and callbacks mechanishm), but I don't know if it
fits well with libevent approach.

Is there any way use ALSA to handle audio events (like buffer is filled
with audio from the microphone) and handle the rest of the events in the
same process in a Linux environment?



Another question: Does ALSA support AMR or GSM codecs?



Your help is really very apreciated.




[-- Attachment #2: Type: text/html, Size: 4742 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-07-26 10:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25 17:09 ALSA and event notification schemas Alfredo
2005-07-26  7:17 ` Clemens Ladisch
2005-07-26  8:47   ` Alfredo
2005-07-26 10:01     ` Alfredo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.