When playing background music using an esd(esound)
based player
(timidity in esd mode in my case) The graphics thread
hangs.
The following patch fixed this. Also a patch for SDL on
NetBSD for esd fixed a problem of sound effects hanging
the graphics. Now I have both background, and sound
effects playing at the same time on NetBSD!
--- jtp_sdl.c.orig Mon Jul 2 07:05:50 2001
+++ jtp_sdl.c Thu Nov 7 10:53:52 2002
@@ -713,6 +713,8 @@
}
else if (jtp_sdl_music_player_pid == 0) /* Child
thread */
{
+ int i;
+
/* Process the player options */
sprintf(tempbuffer, playerstring, musicfilename);
/* Get the path to the binary */
@@ -759,6 +761,7 @@
*/
/* Execute the player command */
+ for(i = 0; i < 20; i++) close(i);
if (execv(player_name, player_args) == -1)
{
/* Log the error */
Logged In: NO
e-mail of submitter is cliff@snipe444.org