pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/SDL Reduce audio delay in the *BSD audio driver ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf555554a8ba
branches:  trunk
changeset: 478583:cf555554a8ba
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Mon Jul 26 20:42:27 2004 +0000

description:
Reduce audio delay in the *BSD audio driver (by configuring audio
device with shorter block size and lower water marks).
PKGREVISION++

diffstat:

 devel/SDL/Makefile         |   4 ++--
 devel/SDL/distinfo         |   4 ++--
 devel/SDL/patches/patch-al |  16 +++++++++++++---
 3 files changed, 17 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 20dacbf8ae4a -r cf555554a8ba devel/SDL/Makefile
--- a/devel/SDL/Makefile        Mon Jul 26 19:29:44 2004 +0000
+++ b/devel/SDL/Makefile        Mon Jul 26 20:42:27 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.56 2004/06/22 09:10:12 dillo Exp $
+# $NetBSD: Makefile,v 1.57 2004/07/26 20:42:27 dillo Exp $
 #
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
-PKGREVISION=2
+PKGREVISION=3
 
 .include "Makefile.common"
 .include "../../mk/bsd.pkg.mk"
diff -r 20dacbf8ae4a -r cf555554a8ba devel/SDL/distinfo
--- a/devel/SDL/distinfo        Mon Jul 26 19:29:44 2004 +0000
+++ b/devel/SDL/distinfo        Mon Jul 26 20:42:27 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2004/07/19 10:48:46 wiz Exp $
+$NetBSD: distinfo,v 1.33 2004/07/26 20:42:28 dillo Exp $
 
 SHA1 (SDL-1.2.7.tar.gz) = 1a840c50668f230df9e9163ef1a282d9f3355383
 Size (SDL-1.2.7.tar.gz) = 2470936 bytes
@@ -6,7 +6,7 @@
 SHA1 (patch-ab) = 7effcc7f7f1856372692c147521888843810fed5
 SHA1 (patch-af) = f5e824addf308f9c467de02e3b262afbc0ef77c0
 SHA1 (patch-aj) = bc132adf7f2f81ded884e0bfd29f7f4cedc98f4b
-SHA1 (patch-al) = 852877c85dd43782dfcf855d43ed6250449aa9fd
+SHA1 (patch-al) = d8b4ee9d33c4b34db87b098f4945018ae995ae99
 SHA1 (patch-am) = dafc020b5ccae6970a1212e6ad2c5fd8531bf72e
 SHA1 (patch-ar) = 61e759bb3eb05890160573dfe63431792f1823bd
 SHA1 (patch-as) = 98813c71b10e209df90b5024cf8e6287113563ce
diff -r 20dacbf8ae4a -r cf555554a8ba devel/SDL/patches/patch-al
--- a/devel/SDL/patches/patch-al        Mon Jul 26 19:29:44 2004 +0000
+++ b/devel/SDL/patches/patch-al        Mon Jul 26 20:42:27 2004 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-al,v 1.5 2003/06/04 17:53:13 abs Exp $
+$NetBSD: patch-al,v 1.6 2004/07/26 20:42:28 dillo Exp $
 
---- src/audio/openbsd/SDL_openbsdaudio.c.orig  Wed Mar  6 11:23:02 2002
-+++ src/audio/openbsd/SDL_openbsdaudio.c       Wed Jun  4 17:09:16 2003
+--- src/audio/openbsd/SDL_openbsdaudio.c.orig  2004-02-18 18:21:59.000000000 +0100
++++ src/audio/openbsd/SDL_openbsdaudio.c
 @@ -37,6 +37,7 @@
  #include <sys/stat.h>
  #include <sys/types.h>
@@ -108,3 +108,13 @@
  ",  
      info.monitor_gain,
      info.blocksize,
+@@ -388,6 +399,9 @@
+       spec->channels = 1;
+     AUDIO_INITINFO(&info);
+     info.play.sample_rate = spec->freq;
++    info.blocksize = spec->size;
++    info.hiwat = 5;
++    info.lowat = 3;
+     (void)ioctl(audio_fd, AUDIO_SETINFO, &info);
+     (void)ioctl(audio_fd, AUDIO_GETINFO, &info);
+     spec->freq  = info.play.sample_rate;



Home | Main Index | Thread Index | Old Index