[Mplayer-cvslog] CVS: main/libao2 ao_alsa9.c,1.41,1.42
Jindrich Makovicka CVS
syncmail at mplayerhq.hu
Fri Feb 27 18:03:10 CET 2004
CVS change done by Jindrich Makovicka CVS
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv8673
Modified Files:
ao_alsa9.c
Log Message:
replace set_periods and set_period_size with their _near cousins
Index: ao_alsa9.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_alsa9.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- ao_alsa9.c 10 Jan 2004 09:10:52 -0000 1.41
+++ ao_alsa9.c 27 Feb 2004 17:03:08 -0000 1.42
@@ -633,7 +633,7 @@
#ifdef SET_CHUNKSIZE
{
//set chunksize
- if ((err = snd_pcm_hw_params_set_period_size(alsa_handler, alsa_hwparams, chunk_size, 0)) < 0)
+ if ((err = snd_pcm_hw_params_set_period_size_near(alsa_handler, alsa_hwparams, chunk_size, 0)) < 0)
{
printf("alsa-init: unable to set periodsize: %s\n", snd_strerror(err));
return(0);
@@ -650,7 +650,7 @@
if (verbose>0)
printf("alsa-init: current val=%i, fragcount=%i\n", period_val, alsa_fragcount);
- if ((err = snd_pcm_hw_params_set_periods(alsa_handler, alsa_hwparams, alsa_fragcount, 0)) < 0) {
+ if ((err = snd_pcm_hw_params_set_periods_near(alsa_handler, alsa_hwparams, alsa_fragcount, 0)) < 0) {
printf("alsa-init: unable to set periods: %s\n", snd_strerror(err));
}
}
More information about the MPlayer-cvslog
mailing list