Subject: pkg/14375: audio broken in pkgsrc/emulators/zsnes
To: None <gnats-bugs@gnats.netbsd.org>
From: None <collver@linuxfreemail.com>
List: netbsd-bugs
Date: 10/27/2001 07:57:39
>Number: 14375
>Category: pkg
>Synopsis: audio broken in pkgsrc/emulators/zsnes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 27 07:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSd 1.5.2
>Organization:
>Environment:
>Description:
In NetBSD 1.5.2, SDL depends on GNU Pth. zsnes is not written for
cooperative threads, and SDL's Audio thread doesn't get sceduled.
>How-To-Repeat:
Run zsnes and hear silence.
>Fix:
--- patches/patch-ab 2001/10/06 20:00:42 1.1.1.1
+++ patches/patch-ab 2001/10/27 14:44:53
@@ -15,3 +15,9 @@
#include <netdb.h>
#include <utime.h>
#include <zlib.h>
+@@ -115,3 +115,5 @@
+ #include <sys/filio.h>
+ #endif
+ #endif
++
++ #include <pthread.h>
--- /dev/null Sat Oct 27 07:45:33 2001
+++ patches/patch-ad Sat Oct 27 07:45:33 2001
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- linux/sw_draw.c.orig Thu Sep 20 11:08:10 2001
++++ linux/sw_draw.c
+@@ -166,6 +166,8 @@
+ {
+ DWORD i,j,color32;
+
++ pthread_yield_np();
++
+ NGNoTransp = 0; // Set this value to 1 within the appropriate
+ // video mode if you want to add a custom
+ // transparency routine or hardware
>Release-Note:
>Audit-Trail:
>Unformatted:
>environment:
System: NetBSD glen 1.5.2 NetBSD 1.5.2 (GLEN) #0: Tue Sep 25 06:41:40 PDT 2001 root@glen:/usr/src/sys/arch/i386/compile/GLEN i386