$NetBSD: patch-ab,v 1.1.1.1 2000/10/15 17:16:05 rh Exp $ --- src/WavFile.C.orig Sat Aug 26 03:16:28 2000 +++ src/WavFile.C @@ -24,7 +24,11 @@ #include "Blob.h" #include "TmpFile.h" +#ifdef __NetBSD__ +#include +#else #include +#endif #include #include #include @@ -33,7 +37,11 @@ #include #include +#ifdef __NetBSD__ +const string DSP = "/dev/audio"; +#else const string DSP = "/dev/dsp"; +#endif const int WAV_FMT_PCM = 1; const int WAV_FMT_OKI_ADPCM = 16; const bool DEBUG = false; @@ -203,7 +211,7 @@ if(DEBUG) cout << "read " << data.length() << " bytes\n"; if(DEBUG) cout.flush(); - if(DEBUG) cout << "Writing " << data.length() << " bytes to /dev/dsp... "; + if(DEBUG) cout << "Writing " << data.length() << " bytes to " << DSP << " ... "; if(DEBUG) cout.flush(); write(m_dsp, data.bstr(), data.length()); if(DEBUG) cout << "done\n";