Re: [alsa-devel] [LAD] How to get correct midi timings from ALSA using the library only

From: Clemens Ladisch <cladisch@email-addr-hidden>
Date: Wed Jul 25 2007 - 11:24:58 EEST

Carlo Florendo wrote:
> Clemens Ladisch wrote:
> >> However, I wish to be able to make the sequencer or player work without the
> >> use of the ALSA queue nor the workaround in (2).
> >
> > Why?
>
> Because the queue output and draining, AFAICS, is implemented in a blocking
> manner.

When non-blocking mode is set (see snd_seq_nonblock()),
snd_seq_drain_output() does not block but writes only as many events to
the kernel buffer as fit inside (or returns -EAGAIN if the kernel buffer
is completely full).

Regards,
Clemens
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Wed Jul 25 12:15:08 2007

This archive was generated by hypermail 2.1.8 : Wed Jul 25 2007 - 12:15:09 EEST