1 /*****************************************************************************
2 ** $Source: /cygdrive/d/Private/_SVNROOT/bluemsx/blueMSX/Src/SoundChips/Moonsound.h,v $
3 **
4 ** $Revision: 1.10 $
5 **
6 ** $Date: 2008-03-30 18:38:45 $
7 **
8 ** More info: http://www.bluemsx.com
9 **
10 ** Copyright (C) 2003-2006 Daniel Vik
11 **
12 ** This program is free software; you can redistribute it and/or modify
13 ** it under the terms of the GNU General Public License as published by
14 ** the Free Software Foundation; either version 2 of the License, or
15 ** (at your option) any later version.
16 **
17 ** This program is distributed in the hope that it will be useful,
18 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 ** GNU General Public License for more details.
21 **
22 ** You should have received a copy of the GNU General Public License
23 ** along with this program; if not, write to the Free Software
24 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 **
26 ******************************************************************************
27 */
28 #ifndef MOONSOUND_H
29 #define MOONSOUND_H
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 #include "MsxTypes.h"
36 #include "AudioMixer.h"
37 #include "DebugDeviceManager.h"
38 
39 typedef struct Moonsound Moonsound;
40 
41 /* Constructor and destructor */
42 Moonsound* moonsoundCreate(Mixer* mixer, void* romData, int romSize, int sramSize);
43 void moonsoundDestroy(Moonsound* moonsound);
44 void moonsoundReset(Moonsound* moonsound);
45 UInt8 moonsoundRead(Moonsound* moonsound, UInt16 ioPort);
46 UInt8 moonsoundPeek(Moonsound* moonsound, UInt16 ioPort);
47 void moonsoundWrite(Moonsound* moonsound, UInt16 ioPort, UInt8 value);
48 void moonsoundLoadState(Moonsound* moonsound);
49 void moonsoundSaveState(Moonsound* moonsound);
50 void moonsoundGetDebugInfo(Moonsound* moonsound, DbgDevice* dbgDevice);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 
57 #endif
58 
59