Subject: [linux-audio-dev] laaga thoughts
From: Paul Davis (pbd_AT_Op.Net)
Date: Fri Jun 29 2001 - 17:24:24 EEST
I've been thinking about the possibility of providing a slightly
different API for LAAGA that would simply provide two file descriptors
(actually, pointers to file descriptors). You would be able to
select(2) on the first, and then:
* when the first one is readable, you read an unsigned long
to get the number of frames of audio, then do whatever is
needed (in an audio-free MusE, not much)
* when done, you write the same number to the second fd.
This would make integration into an app like MusE much more
straightforward, I think. These applications use select/poll already
on the audio device fd's, and this API would just replace that
operation with a different fd.
This would be in addition to the existing "provide a callback, and the
library will ensure it gets called" API, but would help integrate
existing "bulky" applications (which is a very desirable goal).
The problem, of course, is that it exposes what was previously an
"implementation detail" ....
Any thoughts? I've written to Werner privately about this idea too.
--p
This archive was generated by hypermail 2b28 : Fri Jun 29 2001 - 17:25:43 EEST