[MPlayer-users] alsa 0.5

polish polish at pf.ujep.cz
Tue Nov 26 08:03:03 CET 2002


	Hi,

  I had problem with -ao alsa5. During initialization sound card finished
mplayer with error: "alsa-init: error setting parameters: Invalid
parameters". I think so, that error appears during call
if ((err = snd_pcm_channel_params(alsa_handler, &params)) < 0) ( row 191 ).

  I see two things. I have sound card CS4281
	chninfo.min_voices=1
	chninfo.max_voices=2

	but in params.format.voices=4 ( setuped on row 161 -
alsa_format.voices = ao_data.channels*2; I don't understand to magic
number (2)).
  Second thing is that params.sync is not setuped.

  I solve this problem that i change row 161 to
alsa_format.voices = ao_data.channels;
  and I add row
param.sync = chninfo.sync;
  then initialization is OK and alsa plays.

System parameters -
Mandrake 8.2
ALSA 0.5.10
kernel 2.4.18-6mdk
gcc 3.0.4
MPlayer from cvs from 22.11.2002

  I'm sorry if I write something wrong. Please send me response to my
address, because I'm not member of your mailing-list. I would like to say
you : "Thank you" for best movie player, which I know.

	regarding Polish

**********************************************************
*  starnem a porad nic, rozum jako kdyby se nam vyhybal  *
**********************************************************




More information about the MPlayer-users mailing list