diff options
author | tron <tron> | 1999-06-19 15:30:56 +0000 |
---|---|---|
committer | tron <tron> | 1999-06-19 15:30:56 +0000 |
commit | afa76167b01e5e91b8c63af03e8672af52ce8741 (patch) | |
tree | 528414da61db46be60b45fe8e3a2e7c57f7c5b62 /emulators | |
parent | f06e4f7bcee2dc20f368dac74b72b24994aa4446 (diff) | |
download | pkgsrc-afa76167b01e5e91b8c63af03e8672af52ce8741.tar.gz |
Use "/dev/sound" instead of "/dev/dsp".
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/uae/patches/patch-ab | 32 |
1 files changed, 32 insertions, 0 deletions
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; |