Root/mplayer/patches/020-alsa-buffer.patch

Source at commit 1b3135c created 8 years 3 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1Index: MPlayer-r33304/libao2/ao_alsa.c
2===================================================================
3--- MPlayer-r33304.orig/libao2/ao_alsa.c 2011-04-27 08:12:35.000000000 +0200
4+++ MPlayer-r33304/libao2/ao_alsa.c 2011-04-27 08:12:55.000000000 +0200
5@@ -313,8 +313,8 @@
6 */
7 static int init(int rate_hz, int channels, int format, int flags)
8 {
9- unsigned int alsa_buffer_time = 500000; /* 0.5 s */
10- unsigned int alsa_fragcount = 16;
11+ unsigned int alsa_buffer_time = 1000000; /* 0.5 s */
12+ unsigned int alsa_fragcount = 4;
13     int err;
14     int block;
15     strarg_t device;
16

Archive Download this file



interactive