[MPlayer-dev-eng] [patch] prefer ALSA over OSS

Diego Biurrun diego at biurrun.de
Sat Apr 28 18:25:43 CEST 2007


On Sat, Apr 28, 2007 at 09:33:27AM -0600, Sven Gothel wrote:
> On Saturday 28 April 2007 at 09:15, Ville Syrjälä wrote:
> > On Sat, Apr 28, 2007 at 05:04:37PM +0200, Reimar Döffinger wrote:
> > > On Sat, Apr 28, 2007 at 04:23:14PM +0200, Adrian Bunk wrote:
> > > > In Linux kernel 2.6, ALSA is the default sound system.
> > > > It contains an in-kernel OSS emulation, but using ALSA directly is 
> > > > better.
> > > > 
> > > > MPlayer supports both ALSA and OSS, and this patch changes the order to 
> > > > check for ALSA before checking for OSS.
> > > > 
> > > > --- libao2/audio_out.c.old	2007-04-28 01:08:17.000000000 +0200
> > > > +++ libao2/audio_out.c	2007-04-28 01:08:44.000000000 +0200
> > > > @@ -84,9 +84,6 @@
> > > >  #ifdef MACOSX
> > > >  	&audio_out_macosx,
> > > >  #endif
> > > > -#ifdef USE_OSS_AUDIO
> > > > -        &audio_out_oss,
> > > > -#endif
> > > >  #ifdef HAVE_ALSA1X
> > > >  	&audio_out_alsa,
> > > >  #endif
> > > > @@ -96,6 +93,9 @@
> > > >  #ifdef HAVE_ALSA5
> > > >  	&audio_out_alsa5,
> > > >  #endif
> > > > +#ifdef USE_OSS_AUDIO
> > > > +        &audio_out_oss,
> > > > +#endif
> > > 
> > > Alsa 0.5 certainly shouldn't be preferred over OSS.
> > 
> > How about giving ALSA 0.5 support the boot. Last 0.5 release was made in
> > 2001.
> 
> It's a long time ago, I checked and worked on QNX,
> but if the don't support ALSA 0.5, and if you don't want to dump them,
> well - you might want to keep it in.
> Not that I really care ;-)

Does QNX support OSS or newer versions of ALSA?

I faintly remember something about IRIX, but I'm not really sure ...

Diego



More information about the MPlayer-dev-eng mailing list