view src/gb/gbSound.h @ 45:f6ff410a87fd

using libtool for convienence libraries
author Robert McIntyre <rlm@mit.edu>
date Tue, 06 Mar 2012 22:07:22 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef VBA_GB_SOUND_H
2 #define VBA_GB_SOUND_H
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
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
30 #define SOUND_EVENT(address, value) \
31 gbSoundEvent(address, value)
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);
45 typedef int32 soundtick_t;
47 extern soundtick_t soundTicks;
48 extern int32 soundQuality;
49 extern soundtick_t SOUND_CLOCK_TICKS;
51 #endif // VBA_GB_SOUND_H