diff options
author | dsainty <dsainty@pkgsrc.org> | 2006-06-17 06:37:55 +0000 |
---|---|---|
committer | dsainty <dsainty@pkgsrc.org> | 2006-06-17 06:37:55 +0000 |
commit | 1726bab356e0fc7fd3a97c27801bacbaf94c7a85 (patch) | |
tree | ad2a2386a76febee7d9e52ad8378fac86a0cf6a2 | |
parent | ef33035b559a61dd24010664668a40cadfc0e044 (diff) | |
download | pkgsrc-1726bab356e0fc7fd3a97c27801bacbaf94c7a85.tar.gz |
Bumped PKGREVISION to 1: Patch to fix noise channel emulation on NetBSD.
-rw-r--r-- | emulators/xbeeb/Makefile | 3 | ||||
-rw-r--r-- | emulators/xbeeb/distinfo | 4 | ||||
-rw-r--r-- | emulators/xbeeb/patches/patch-ab | 21 |
3 files changed, 24 insertions, 4 deletions
diff --git a/emulators/xbeeb/Makefile b/emulators/xbeeb/Makefile index 8cfd454c62c..fa9ed4b58c5 100644 --- a/emulators/xbeeb/Makefile +++ b/emulators/xbeeb/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.18 2006/06/13 13:24:35 dsainty Exp $ +# $NetBSD: Makefile,v 1.19 2006/06/17 06:37:55 dsainty Exp $ # DISTNAME= xbeeb-0.4.1 +PKGREVISION= 1 CATEGORIES= emulators x11 MASTER_SITES= http://bbc.nvg.org/emul/Xbeeb/ \ http://www.getafile.com/cgi-bin/merlot/get/james/xbeeb/ diff --git a/emulators/xbeeb/distinfo b/emulators/xbeeb/distinfo index 4014e02aceb..bdb9eb4a48a 100644 --- a/emulators/xbeeb/distinfo +++ b/emulators/xbeeb/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.4 2006/06/13 13:24:35 dsainty Exp $ +$NetBSD: distinfo,v 1.5 2006/06/17 06:37:55 dsainty Exp $ SHA1 (xbeeb-0.4.1.tgz) = 5e2fccfabd0aa5a656758b2ea0536570a790dabe RMD160 (xbeeb-0.4.1.tgz) = 67dba3262f7e5886a86e5656288d807fea540d9b Size (xbeeb-0.4.1.tgz) = 351715 bytes SHA1 (patch-aa) = 68b91908397147aecf1e1644f597802d6380aa96 -SHA1 (patch-ab) = 7bcdfb9b15e8ef2349325bf2b23a662cba914a5c +SHA1 (patch-ab) = 704fca768a80b17e3aed1ebb8c6525c52f30e3f0 SHA1 (patch-ac) = 72622acf9671ac0f72bd9b8271fc17f25d3655f1 SHA1 (patch-ad) = 733916029e94e65ee7702778ce344468ab3cf658 SHA1 (patch-ae) = 00906d13e5dd9ec03f011053e7399fac581efc3d diff --git a/emulators/xbeeb/patches/patch-ab b/emulators/xbeeb/patches/patch-ab index 54802f55617..ec9c4379589 100644 --- a/emulators/xbeeb/patches/patch-ab +++ b/emulators/xbeeb/patches/patch-ab @@ -1,8 +1,10 @@ -$NetBSD: patch-ab,v 1.2 2006/06/13 13:24:36 dsainty Exp $ +$NetBSD: patch-ab,v 1.3 2006/06/17 06:37:55 dsainty Exp $ Make sure ioctl() gets a third dummy argument, for the three argument macro defined in the NetBSD OSS emulation soundcard.h. +rand() is too weak to generate quality white noise, use random() instead. + --- src/SoundOSS.c.orig 2002-01-16 04:46:43.000000000 +1300 +++ src/SoundOSS.c 2006-06-03 18:25:08.000000000 +1200 @@ -106,7 +106,7 @@ @@ -14,3 +16,20 @@ defined in the NetBSD OSS emulation soundcard.h. fprintf ( stderr, "Can't reset sound device\n" ); return; } +@@ -328,13 +328,13 @@ + SampleState[c] ^= 1; + else { + if ( SoundFb ) +- SampleState[c] = rand() & 1; ++ SampleState[c] = random() & 1; + else { + if ( pnoise++ == 10240 ) { +- srand(time(0)); ++ srandom(time(0)); + pnoise = 0; + } +- SampleState[c] = rand() & 1; ++ SampleState[c] = random() & 1; + } + } + } |