1 /*
2  * AdPlay/UNIX - OPL2 audio player
3  * Copyright (C) 2001, 2002 Simon Peter <dn.tlp@gmx.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2, or (at your option)
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software Foundation,
17  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef H_DISK
21 #define H_DISK
22 
23 #include <binio.h>
24 
25 #include "output.h"
26 
27 class DiskWriter: public EmuPlayer
28 {
29 public:
30   DiskWriter(Copl *nopl, const char *filename, unsigned char nbits,
31 	     unsigned char nchannels, unsigned long nfreq);
32   virtual ~DiskWriter();
33 
34 protected:
35   virtual void output(const void *buf, unsigned long size);
36 
37 private:
38   binostream	*f;
39   unsigned long samplesize;
40 };
41 
42 #endif
43