[MPlayer-dev-eng] merging alsa9/alsa1.x

joy at pingfm.org joy at pingfm.org
Thu Apr 22 16:04:19 CEST 2004


On Mon, 19 Apr 2004, James Courtier-Dutton wrote:

> Is there a reason why you did all that #ifdef stuff, instead of just 
> adding 2 #define lines like I showed?
> With the 2 #define lines, you just use the lines under "#ifdef 
> HAVE_ALSA1X" for both 0.9 and 1.x
cause im not really convinced that alsa1.x-lib is backwards compatible 
to alsa9. i mean the case if somebody has alsa9-lib installed and uses 
mplayer with alsa1.x-driver+your defines.
did you tested it? the above case?

> 
> 
> joy at pingfm.org wrote:
> >>
> >>Which 5 lines do you use ?
> > 
> > #ifdef HAVE_ALSA1X
> >       if ((err = snd_pcm_hw_params_set_rate_near(alsa_handler, 
> > alsa_hwparams, 
> > 						 &ao_data.samplerate, 
> > &dir)) < 0) 
> > #else
> >       if ((err = snd_pcm_hw_params_set_rate_near(alsa_handler, 
> > 						 alsa_hwparams, 
> > ao_data.samplerate, 0)) < 0)
> > #endif
> > 
> > 'dir' has to be set to 0.
> > 
> > 
> >>My two lines are just to insert these 2 lines somewhere before
> >>"#include <alsa/asoundlib.h>"
> >>
> >>#define ALSA_PCM_NEW_HW_PARAMS_API
> >>#define ALSA_PCM_NEW_SW_PARAMS_API
> >>
> 
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
> 

regards

joy

________________________________________
do interactive tv on www.remote-tv.de




More information about the MPlayer-dev-eng mailing list