From 2ad074e0ab852d3b7ef2ac55d94bfd2235522f3b Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 19 Jun 1999 15:30:56 +0000 Subject: Use "/dev/sound" instead of "/dev/dsp". --- emulators/uae/patches/patch-ab | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 emulators/uae/patches/patch-ab (limited to 'emulators/uae/patches') diff --git a/emulators/uae/patches/patch-ab b/emulators/uae/patches/patch-ab new file mode 100644 index 00000000000..2165df3b80b --- /dev/null +++ b/emulators/uae/patches/patch-ab @@ -0,0 +1,32 @@ +$NetBSD: patch-ab,v 1.1 1999/06/19 15:30:56 tron Exp $ + +--- src/sd-uss/sound.c.orig Wed Jul 15 11:41:13 1998 ++++ src/sd-uss/sound.c Sat Jun 19 17:20:15 1999 +@@ -51,12 +51,12 @@ + /* Try to determine whether sound is available. This is only for GUI purposes. */ + int setup_sound (void) + { +- sound_fd = open ("/dev/dsp", O_WRONLY); ++ sound_fd = open ("/dev/sound", O_WRONLY); + + sound_available = 0; + + if (sound_fd < 0) { +- perror ("Can't open /dev/dsp"); ++ perror ("Can't open /dev/sound"); + if (errno == EBUSY) { + /* We can hope, can't we ;) */ + sound_available = 1; +@@ -82,10 +82,10 @@ + int rate; + int dspbits; + +- sound_fd = open ("/dev/dsp", O_WRONLY); ++ sound_fd = open ("/dev/sound", O_WRONLY); + have_sound = !(sound_fd < 0); + if (! have_sound) { +- perror ("Can't open /dev/dsp"); ++ perror ("Can't open /dev/sound"); + if (errno != EBUSY) + sound_available = 0; + return 0; -- cgit v1.2.3