Use /dev/audio or pkgsrc DEVOSSAUDIO for OSS on NetBSD.

master
AliceLR 4 years ago committed by Ozkan Sezer
parent d9525f0161
commit 91970bf254
  1. 2
      src/sound_netbsd.c
  2. 9
      src/sound_oss.c

@ -36,7 +36,7 @@ static int init(struct options *options)
chkparm1("buffer", bsize = strtoul(token, NULL, 0));
parm_end();
if ((audio_fd = open("/dev/sound", O_WRONLY)) == -1)
if ((audio_fd = open("/dev/audio", O_WRONLY)) == -1)
return -1;
/* try to open audioctldevice */

@ -109,7 +109,14 @@ static void setaudio(int *rate, int *format)
static int init(struct options *options)
{
char **parm = options->driver_parm;
static const char *dev_audio[] = { "/dev/dsp", "/dev/sound/dsp" };
static const char *dev_audio[] = {
#ifdef DEVOSSAUDIO
DEVOSSAUDIO, /* pkgsrc */
#endif
"/dev/dsp",
"/dev/sound/dsp",
"/dev/audio" /* NetBSD and SunOS */
};
audio_buf_info info;
static char buf[80];
int i;

Loading…
Cancel
Save