$NetBSD: patch-aa,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $ --- include/sound.h.orig Sat Jan 11 12:12:55 1997 +++ include/sound.h Sun May 23 10:48:03 1999 @@ -237,6 +237,42 @@ #endif /* FreeBSD */ +/* + * NetBSD + */ + +#if defined(__NetBSD__) && defined(USE_SOUND) + +/* NetBSD with MB6258V */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#define AUDIO_DEVICE "/dev/audio" +#define AUDIO_CTLDEVICE "/dev/audioctl" +#define AUDIOMAGICNUMBER (0x2e736e64) /* ".snd" */ +#ifndef AUDIO_ENCODING_LINEAR +#define AUDIO_ENCODING_LINEAR (3) /* Linear PCM encoding */ +#endif + +#undef O_RDWR +#define O_RDWR O_WRONLY /* audio デバイスは同時オープンできない? */ + +struct SoundCacheBufferTag { + char *soundCacheBuffer; + int soundLength; + audio_info_t soundBParam; +}; + +#define SoundCacheBuffer struct SoundCacheBufferTag + +#endif /* NetBSD */ #else /* USE_NETAUDIO */