Mercurial > vba-linux
comparison src/gb/gbSound.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 #ifndef VBA_GB_SOUND_H | |
2 #define VBA_GB_SOUND_H | |
3 | |
4 #if _MSC_VER > 1000 | |
5 #pragma once | |
6 #endif // _MSC_VER > 1000 | |
7 | |
8 #define NR10 0xff10 | |
9 #define NR11 0xff11 | |
10 #define NR12 0xff12 | |
11 #define NR13 0xff13 | |
12 #define NR14 0xff14 | |
13 #define NR21 0xff16 | |
14 #define NR22 0xff17 | |
15 #define NR23 0xff18 | |
16 #define NR24 0xff19 | |
17 #define NR30 0xff1a | |
18 #define NR31 0xff1b | |
19 #define NR32 0xff1c | |
20 #define NR33 0xff1d | |
21 #define NR34 0xff1e | |
22 #define NR41 0xff20 | |
23 #define NR42 0xff21 | |
24 #define NR43 0xff22 | |
25 #define NR44 0xff23 | |
26 #define NR50 0xff24 | |
27 #define NR51 0xff25 | |
28 #define NR52 0xff26 | |
29 | |
30 #define SOUND_EVENT(address, value) \ | |
31 gbSoundEvent(address, value) | |
32 | |
33 extern void gbSoundTick(); | |
34 extern void gbSoundPause(); | |
35 extern void gbSoundResume(); | |
36 extern void gbSoundEnable(int); | |
37 extern void gbSoundDisable(int); | |
38 extern int gbSoundGetEnable(); | |
39 extern void gbSoundReset(); | |
40 extern void gbSoundSaveGame(gzFile); | |
41 extern void gbSoundReadGame(int, gzFile); | |
42 extern void gbSoundEvent(register u16, register int); | |
43 extern void gbSoundSetQuality(int); | |
44 | |
45 typedef int32 soundtick_t; | |
46 | |
47 extern soundtick_t soundTicks; | |
48 extern int32 soundQuality; | |
49 extern soundtick_t SOUND_CLOCK_TICKS; | |
50 | |
51 #endif // VBA_GB_SOUND_H |