Re: [linux-audio-dev] laaga thoughts

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] laaga thoughts
From: Richard Guenther (rguenth_AT_tat.physik.uni-tuebingen.de)
Date: Mon Jul 02 2001 - 13:05:19 EEST


On Fri, 29 Jun 2001, Paul Davis wrote:

> 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.

I like it :)

Richard.

--
Richard Guenther <richard.guenther_AT_uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Jul 02 2001 - 13:07:53 EEST