1 // -*- C++ -*-
2 // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
3 // Copyright (C) 1999-2003 Forgotten
4 // Copyright (C) 2004 Forgotten and the VBA development team
5 
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2, or(at your option)
9 // any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 
20 #define NR10 0xff10
21 #define NR11 0xff11
22 #define NR12 0xff12
23 #define NR13 0xff13
24 #define NR14 0xff14
25 #define NR21 0xff16
26 #define NR22 0xff17
27 #define NR23 0xff18
28 #define NR24 0xff19
29 #define NR30 0xff1a
30 #define NR31 0xff1b
31 #define NR32 0xff1c
32 #define NR33 0xff1d
33 #define NR34 0xff1e
34 #define NR41 0xff20
35 #define NR42 0xff21
36 #define NR43 0xff22
37 #define NR44 0xff23
38 #define NR50 0xff24
39 #define NR51 0xff25
40 #define NR52 0xff26
41 
42 #define SOUND_EVENT(address,value) \
43     gbSoundEvent(address,value)
44 
45 extern void gbSoundTick();
46 extern void gbSoundPause();
47 extern void gbSoundResume();
48 extern void gbSoundEnable(int);
49 extern void gbSoundDisable(int);
50 extern int gbSoundGetEnable();
51 extern void gbSoundReset();
52 extern void gbSoundSaveGame(gzFile);
53 extern void gbSoundReadGame(int,gzFile);
54 extern void gbSoundEvent(register u16, register int);
55 extern void gbSoundSetQuality(int);
56 
57 extern int soundTicks;
58 extern int soundQuality;
59 extern int SOUND_CLOCK_TICKS;
60