pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/xbeeb Bumped PKGREVISION to 1: Patch to fix ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f1d7199b23e
branches:  trunk
changeset: 514707:7f1d7199b23e
user:      dsainty <dsainty%pkgsrc.org@localhost>
date:      Sat Jun 17 06:37:55 2006 +0000

description:
Bumped PKGREVISION to 1: Patch to fix noise channel emulation on NetBSD.

diffstat:

 emulators/xbeeb/Makefile         |   3 ++-
 emulators/xbeeb/distinfo         |   4 ++--
 emulators/xbeeb/patches/patch-ab |  21 ++++++++++++++++++++-
 3 files changed, 24 insertions(+), 4 deletions(-)

diffs (65 lines):

diff -r 968bebd78817 -r 7f1d7199b23e emulators/xbeeb/Makefile
--- a/emulators/xbeeb/Makefile  Sat Jun 17 05:05:13 2006 +0000
+++ b/emulators/xbeeb/Makefile  Sat Jun 17 06:37:55 2006 +0000
@@ -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 -r 968bebd78817 -r 7f1d7199b23e emulators/xbeeb/distinfo
--- a/emulators/xbeeb/distinfo  Sat Jun 17 05:05:13 2006 +0000
+++ b/emulators/xbeeb/distinfo  Sat Jun 17 06:37:55 2006 +0000
@@ -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 -r 968bebd78817 -r 7f1d7199b23e emulators/xbeeb/patches/patch-ab
--- a/emulators/xbeeb/patches/patch-ab  Sat Jun 17 05:05:13 2006 +0000
+++ b/emulators/xbeeb/patches/patch-ab  Sat Jun 17 06:37:55 2006 +0000
@@ -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 @@
                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;
+                                       }
+                               }
+                       }



Home | Main Index | Thread Index | Old Index