• Ken Raeburn's avatar
    Sound support for NetBSD through "Linux emulation" support: · 80fcd514
    Ken Raeburn authored
    * config.in (HAVE_SOUNDCARD_H): Undef.
    (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
    * Makefile.in (LIBSOUND): New variable.
    (LIBES): Include it.
    * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
    (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
    (vox_open): Use DEFAULT_SOUND_DEVICE.
    * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
    80fcd514
sound.c 22.6 KB