Re: [Alsa-devel] OSS driver removal, 2nd round (v2)

Adam Tlałka
2006-07-11T06:13:35Z

On Mon, 10 Jul 2006 22:09:51 -0400
Valdis.Kletnieks@vt.edu wrote:

> On Tue, 11 Jul 2006 01:38:39 +0200, =?ISO-8859-2?Q?Adam_Tla=B3ka?= said:
> > Użytkownik Lee Revell napisał:
> >
> > > esd and artsd are no longer needed since ALSA began to enable software
> > > mixing by default in release 1.0.9.
> > >
> >
> > So why they are still exist in so many Linux distributions?
>
> As soon as somebody writes a patch to make the e16 window manager talk ALSA
> rather than use esd, I'm heaving esd over the side.

Sorry to say but it is just not that way. Window manager is for managing windows
and it shouldn't depend on any audio system. It should use an external app using exec call
to play sounds (aplay, sox, wavplay etc.) configured by some config option.
Generally it is a big mess in may distros where desktop apps depends on sound.
Yes, it is nice to have sound but it is not absolutly needed to use an editor for example.

> Of course, I've been saying that since ALSA 1.0.9 came out. (And don't
> suggest I write it myself - I could if I was motivated enough, but I'm not
> motivated at the current time. :)
>

If you are the author then I just suggest to use exec(3) call, for example:

if (!fork()){
execvp("aplay","beep.wav");
exit(0);
}

Simple, and you don't need to know anything about sound programming ;-).

Regards
--
Adam Tlałka mailto:atlka@pg.gda.pl ^v^ ^v^ ^v^
Computer Center, Gdańsk University of Technology, Poland
PGP public key: finger atlka@sunrise.pg.gda.pl