mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 19:24:22 -04:00
25 lines
712 B
Plaintext
25 lines
712 B
Plaintext
$NetBSD: patch-ab,v 1.9 2011/09/09 15:20:59 wiz Exp $
|
|
|
|
Adapt path to audio device.
|
|
|
|
--- audio_oss.c.orig 2008-11-18 20:35:19.000000000 +0000
|
|
+++ audio_oss.c
|
|
@@ -20,7 +20,7 @@
|
|
#define ARCH_esd_audio_devices
|
|
const char *esd_audio_devices()
|
|
{
|
|
- return "/dev/dsp, /dev/dsp2, etc.";
|
|
+ return "/dev/audio, /dev/audio2, etc. or /dev/dsp, /dev/dsp2, etc.";
|
|
}
|
|
|
|
#define NFRAGS 32
|
|
@@ -56,7 +56,7 @@ int esd_audio_open()
|
|
mode |= O_NONBLOCK;
|
|
|
|
/* open the sound device */
|
|
- device = esd_audio_device ? esd_audio_device : "/dev/dsp";
|
|
+ device = esd_audio_device ? esd_audio_device : DEV_DSP;
|
|
if ((afd = open(device, mode, 0)) == -1)
|
|
{ /* Opening device failed */
|
|
if (errno != ENOENT)
|