summaryrefslogtreecommitdiff
path: root/emulators/dosbox
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-09-16 03:27:20 +0000
committermaya <maya@pkgsrc.org>2017-09-16 03:27:20 +0000
commit8e94d06e36ad08d16620c5cddd444add3d18fb47 (patch)
treec5f1ea379e7aaf706ab41e1f9a1647048dab91a0 /emulators/dosbox
parent20615ecde2c6946c612fff85d26be13926780f28 (diff)
downloadpkgsrc-8e94d06e36ad08d16620c5cddd444add3d18fb47.tar.gz
dosbox: set default audio blocksize to 8192 (up from 1024)
audio stuttering was very noticeable in some games on netbsd and the cause wasn't clear. downsides: may increase audio lag. This is also configurable with ~/.dosbox/dosbox-0.74.conf. Suggested by nat, thanks! bump PKGREVISION
Diffstat (limited to 'emulators/dosbox')
-rw-r--r--emulators/dosbox/Makefile4
-rw-r--r--emulators/dosbox/distinfo3
-rw-r--r--emulators/dosbox/patches/patch-src_dosbox.cpp15
3 files changed, 19 insertions, 3 deletions
diff --git a/emulators/dosbox/Makefile b/emulators/dosbox/Makefile
index cb06cb0ba55..f0a8374e44f 100644
--- a/emulators/dosbox/Makefile
+++ b/emulators/dosbox/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.43 2017/02/07 23:56:14 joerg Exp $
+# $NetBSD: Makefile,v 1.44 2017/09/16 03:27:20 maya Exp $
DISTNAME= dosbox-0.74
-PKGREVISION= 9
+PKGREVISION= 10
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dosbox/}
diff --git a/emulators/dosbox/distinfo b/emulators/dosbox/distinfo
index 0974cf80393..05a8a38b343 100644
--- a/emulators/dosbox/distinfo
+++ b/emulators/dosbox/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2017/02/07 23:56:14 joerg Exp $
+$NetBSD: distinfo,v 1.23 2017/09/16 03:27:20 maya Exp $
SHA1 (dosbox-0.74.tar.gz) = 2d99f0013350efb29b769ff19ddc8e4d86f4e77e
RMD160 (dosbox-0.74.tar.gz) = 4534d87206de8401cd0de471d8172726f2c6b788
@@ -6,5 +6,6 @@ SHA512 (dosbox-0.74.tar.gz) = 4a6ff4c658997a495119d200ec6ad37649da940814a4b14fca
Size (dosbox-0.74.tar.gz) = 1265711 bytes
SHA1 (patch-include_dos__inc.h) = c6c9e5e29b3861fa477ae6c00e335dc57737f8ff
SHA1 (patch-src_Makefile.in) = 6f811b5a1450ca88cb47d99d0381fb682d8b994d
+SHA1 (patch-src_dosbox.cpp) = f96771b9a478d116a10f868cb29aaea7c909ead5
SHA1 (patch-src_gui_sdl__mapper.cpp) = 030a05b6036f28063a42f4fc601dc7add5a85d6b
SHA1 (patch-src_gui_sdlmain.cpp) = 317cd169e6b75a238bb1a4a72812654d36049227
diff --git a/emulators/dosbox/patches/patch-src_dosbox.cpp b/emulators/dosbox/patches/patch-src_dosbox.cpp
new file mode 100644
index 00000000000..4d2ad42b1a6
--- /dev/null
+++ b/emulators/dosbox/patches/patch-src_dosbox.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_dosbox.cpp,v 1.1 2017/09/16 03:27:20 maya Exp $
+
+Default to 8192 block size - sounds better
+
+--- src/dosbox.cpp.orig 2010-05-10 17:43:54.000000000 +0000
++++ src/dosbox.cpp
+@@ -454,7 +454,7 @@ void DOSBOX_Init(void) {
+
+ const char *blocksizes[] = {
+ "1024", "2048", "4096", "8192", "512", "256", 0};
+- Pint = secprop->Add_int("blocksize",Property::Changeable::OnlyAtStart,1024);
++ Pint = secprop->Add_int("blocksize",Property::Changeable::OnlyAtStart,8192);
+ Pint->Set_values(blocksizes);
+ Pint->Set_help("Mixer block size, larger blocks might help sound stuttering but sound will also be more lagged.");
+