diff options
author | nat <nat> | 2015-05-31 09:20:48 +0000 |
---|---|---|
committer | nat <nat> | 2015-05-31 09:20:48 +0000 |
commit | b1b9ea7d64abe6bf942011422fd1131c15922999 (patch) | |
tree | d7567b0a975c3be0f42176688def6721c96d2dc5 /devel | |
parent | c807b7bc1ee8df0af6390b0d2f6797213c56a3e5 (diff) | |
download | pkgsrc-b1b9ea7d64abe6bf942011422fd1131c15922999.tar.gz |
Remove delay whilst writing audio. Improves latency.
Bump PKGREVISION.
This commit was approved by wiz@
Diffstat (limited to 'devel')
-rw-r--r-- | devel/SDL2/Makefile | 4 | ||||
-rw-r--r-- | devel/SDL2/distinfo | 3 | ||||
-rw-r--r-- | devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c | 17 |
3 files changed, 21 insertions, 3 deletions
diff --git a/devel/SDL2/Makefile b/devel/SDL2/Makefile index 1517d7ed268..0faafe1c2af 100644 --- a/devel/SDL2/Makefile +++ b/devel/SDL2/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.14 2015/04/25 14:20:31 tnn Exp $ +# $NetBSD: Makefile,v 1.15 2015/05/31 09:20:48 nat Exp $ DISTNAME= SDL2-2.0.3 -PKGREVISION= 8 +PKGREVISION= 9 CATEGORIES= devel MASTER_SITES= http://www.libsdl.org/release/ diff --git a/devel/SDL2/distinfo b/devel/SDL2/distinfo index 11c322d2adf..f824140cec7 100644 --- a/devel/SDL2/distinfo +++ b/devel/SDL2/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.10 2015/02/25 12:45:59 jmcneill Exp $ +$NetBSD: distinfo,v 1.11 2015/05/31 09:20:48 nat Exp $ SHA1 (SDL2-2.0.3.tar.gz) = 21c45586a4e94d7622e371340edec5da40d06ecc RMD160 (SDL2-2.0.3.tar.gz) = e6f3718c7366c5da793c1454cf0ec0972e8bd347 Size (SDL2-2.0.3.tar.gz) = 3871267 bytes SHA1 (patch-configure) = 7f0469ef69c2a7fc6a769435f0d29a01148df122 +SHA1 (patch-src_audio_bsd_SDL__bsdaudio.c) = ad4bfdfc617b05880e3d0165000b7c570abca146 SHA1 (patch-src_cpuinfo_SDL_cpuinfo.c) = 9482910e62023b92e80ce4d3b670a1a1e666789f SHA1 (patch-src_joystick_bsd_SDL__sysjoystick.c) = 5d2b4d560196a861d4d3e459478d4528f3b759b7 SHA1 (patch-src_thread_pthread_SDL__systhread.c) = 68f32770d067d2b6dcffe96da2dd4aa6b4c82050 diff --git a/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c b/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c new file mode 100644 index 00000000000..46219875eb2 --- /dev/null +++ b/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c @@ -0,0 +1,17 @@ +$NetBSD: patch-src_audio_bsd_SDL__bsdaudio.c,v 1.1 2015/05/31 09:20:48 nat Exp $ + +# Remove delay as there is already an inherent delay in writing audio. +--- src/audio/bsd/SDL_bsdaudio.c.orig 2014-03-16 02:31:44.000000000 +0000 ++++ src/audio/bsd/SDL_bsdaudio.c +@@ -181,11 +181,6 @@ BSDAUDIO_PlayDevice(_THIS) + perror("audio"); + break; + } +- +- if (p < written +- || ((written < 0) && ((errno == 0) || (errno == EAGAIN)))) { +- SDL_Delay(1); /* Let a little CPU time go by */ +- } + } while (p < written); + + /* If timer synchronization is enabled, set the next write frame */ |