[MPlayer-users] Re: New ALSA lib causes MPlayer's configure to not detect ALSA

Stephen Stocker lpar at par1.net
Thu Nov 20 17:43:05 CET 2003


> > [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> > Stephen Stocker wrote:
> >
> >> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> >>   Still the same problem. The latest ALSA lib (CVS since Oct 29) will
> >>   cause a failure to detect ALSA's presence. (All recent CVS releases of
> >>   MPlayer).
> >
> >
> >  > ...
> >
> > The detection code probably misses ALSA 1.0pre because of MAJOR=1 and
> > MINOR=0.
> >
> > Replacing return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)) with
> > something like
> >
> > return (!((SND_LIB_MAJOR==0 && SND_LIB_MINOR==9) || (SND_LIB_MAJOR == 1)))
> >
> > should make the autodetection work again.
> >
> 
> oops, there seem to be API changes too, I'll try to port the drivers.
> 
> --
> Jindrich Makovicka
 
  I just discovered that, too. :) Thanks for the tip, though. The
  detection did work with the modified configure, but it kicked out a
  bunch of errors on make.

  I do wonder about the defines mentioned in ALSA's source "NOTES" file,
  but no clue where they're supposed to go.

  If it helps, these are the errors when it tries to build ao_alsa9:

---
cc -c -O4 -march=i586 -mcpu=i586 -pipe -ffast-math -fomit-frame-pointer -D_REENT
RANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..  -I/usr/local/include
     -o ao_alsa9.o ao_alsa9.c
ao_alsa9.c: In function `init':
ao_alsa9.c:586: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' make
s pointer from integer without a cast
ao_alsa9.c:630: too few arguments to function `snd_pcm_hw_params_get_periods_max
'
ao_alsa9.c:654: too few arguments to function `snd_pcm_hw_params_get_buffer_size
'
make[1]: *** [ao_alsa9.o] Error 1
make[1]: Leaving directory `/home/lpar/temp-work/main/libao2'
make: *** [libao2/libao2.a] Error 2
---

Thanks again, hopefully this'll be ALSA's last API change!

Steve




More information about the MPlayer-users mailing list