Subject: pkg/18964: SDL audio hangs parent thread when using esd
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cliff@snipe444.org>
List: netbsd-bugs
Date: 11/07/2002 11:37:29
>Number: 18964
>Category: pkg
>Synopsis: SDL audio hangs parent thread when using esd
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 07 11:38:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Cliff Wright
>Release: 1.5.2
>Organization:
>Environment:
>Description:
When playing falcons-eye with esd audio enabled and linux_midi_player
option set for timidity in esd mode, the graphics hang. This is caused by a missing include of pthread.h in the SDL esd audio, allowing a threaded write to be used. Since this was added by NetBSD patches for the other audio modes, I thought it should be added
for esd as well. This makes the audio work for me, and with a patch I submitted to falcons-eye, I am able to play both background, and sound effects at the same time (and even desktop audio).
>How-To-Repeat:
As described above
>Fix:
Add following patch similar to
pkgsrc/devel/SDL/patches/patch-al on file in directory
pkgsrc/devel/SDL/work/SDL-1.2.3/src/audio/esd
--- SDL_esdaudio.c.distrib Thu Apr 26 09:50:17 2001
+++ SDL_esdaudio.c Thu Nov 7 02:46:26 2002
@@ -35,6 +35,7 @@
#include <errno.h>
#include <signal.h>
#include <unistd.h>
+#include <pthread.h>
#include <esd.h>
>Release-Note:
>Audit-Trail:
>Unformatted: