[Mplayer-cvslog] CVS: main/libao2 ao_alsa9.c,1.29,1.30

Arpi arpi at thot.banki.hu
Tue Jan 7 22:25:09 CET 2003


Hi,

reversed (see -users Re:)

please stop commiting to code not maintained by you!

> Update of /cvsroot/mplayer/main/libao2
> In directory mail:/var/tmp.root/cvs-serv32076/libao2
> 
> Modified Files:
> 	ao_alsa9.c 
> Log Message:
> A hack for odd alsa driver behavior (returning too small chunks).
> Thought up by A'rpi.
> 
> 
> Index: ao_alsa9.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libao2/ao_alsa9.c,v
> retrieving revision 1.29
> retrieving revision 1.30
> diff -u -r1.29 -r1.30
> --- ao_alsa9.c	4 Dec 2002 22:01:59 -0000	1.29
> +++ ao_alsa9.c	7 Jan 2003 20:53:46 -0000	1.30
> @@ -1082,7 +1082,11 @@
>      if (ret < 0) {
>        printf("negative value!!\n");
>        ret = 0;
> -    }
> +    } else
> +    if (ret < 8192)
> +      // this is a hack for audio only playing (the rountine returns
> about 4-20 bytes free
> +      // and it makes the performance horrible to process large number of
> small chunks)
> +      ret = 0;
>   
>      return(ret);
>  }
> 
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
> 
> 


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu


More information about the MPlayer-cvslog mailing list