$NetBSD: patch-aj,v 1.1 2002/06/27 15:52:19 agc Exp $

--- obuffer.h	2002/06/27 15:41:04	1.1
+++ obuffer.h	2002/06/27 15:41:40
@@ -123,20 +123,20 @@
 
 public:
 #ifdef ULAW
-	SparcObuffer (Header *, bool use_speaker, bool use_headphone, bool use_line_out);
+	SparcObuffer (Header *, boolean use_speaker, boolean use_headphone, boolean use_line_out);
 #else
 	SparcObuffer (uint32 number_of_channels, Header *,
- 		      bool use_speaker, bool use_headphone, bool use_line_out);
+ 		      boolean use_speaker, boolean use_headphone, boolean use_line_out);
 #endif
        ~SparcObuffer (void);
   void	append (uint32 channel, int16 value);
   void	write_buffer (int dummy);
 
 #ifdef ULAW
-  static bool class_suitable (uint32 number_of_channels, bool force_amd);
+  static boolean class_suitable (uint32 number_of_channels, boolean force_amd);
 	// returnvalue == False: no u-law output possible (class unsuitable)
 #else
-  static bool class_suitable (void);
+  static boolean class_suitable (void);
 	// returnvalue == False: no 16-bit output possible (class unsuitable)
 #endif
 };
@@ -159,7 +159,27 @@
   void	append (uint32 channel, int16 value);
   void	write_buffer (int dummy);
 
-  static bool class_suitable (uint32 number_of_channels);
+  static boolean class_suitable (uint32 number_of_channels);
+};
+#endif	// LINUX
+
+#ifdef NETBSD
+class NetBSDObuffer : public Obuffer
+{
+  int16  buffer[OBUFFERSIZE];
+  int16 *bufferp[MAXCHANNELS];
+  uint32 channels;
+  static int audio_fd;
+
+  static int open_audio_device (void);
+
+public:
+	NetBSDObuffer (uint32 number_of_channels, Header *);
+       ~NetBSDObuffer (void);
+  void	append (uint32 channel, int16 value);
+  void	write_buffer (int dummy);
+
+  static boolean class_suitable (uint32 number_of_channels);
 };
 #endif	// LINUX
 
