view src/gba/GBASound.h @ 158:339220ab3f5d

finally found the species identifiers!
author Robert McIntyre <rlm@mit.edu>
date Tue, 20 Mar 2012 03:40:24 -0500
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef VBA_GBA_SOUND_H
2 #define VBA_GBA_SOUND_H
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 #include "zlib.h"
9 #include "../Port.h"
11 #define NR10 0x60
12 #define NR11 0x62
13 #define NR12 0x63
14 #define NR13 0x64
15 #define NR14 0x65
16 #define NR21 0x68
17 #define NR22 0x69
18 #define NR23 0x6c
19 #define NR24 0x6d
20 #define NR30 0x70
21 #define NR31 0x72
22 #define NR32 0x73
23 #define NR33 0x74
24 #define NR34 0x75
25 #define NR41 0x78
26 #define NR42 0x79
27 #define NR43 0x7c
28 #define NR44 0x7d
29 #define NR50 0x80
30 #define NR51 0x81
31 #define NR52 0x84
32 #define SGCNT0_H 0x82
33 #define FIFOA_L 0xa0
34 #define FIFOA_H 0xa2
35 #define FIFOB_L 0xa4
36 #define FIFOB_H 0xa6
38 extern void soundTick();
39 extern void soundShutdown();
40 extern bool soundInit();
41 extern void soundPause();
42 extern void soundResume();
43 extern void soundEnableChannels(int);
44 extern void soundDisableChannels(int);
45 extern int soundGetEnabledChannels();
46 extern void soundReset();
47 extern void soundSaveGame(gzFile);
48 extern void soundReadGame(gzFile, int);
49 extern void soundEvent(u32, u8);
50 extern void soundEvent(u32, u16);
51 extern void soundTimerOverflow(int);
52 extern void soundSetQuality(int);
54 typedef int32 soundtick_t;
56 extern soundtick_t SOUND_CLOCK_TICKS;
57 extern soundtick_t soundTicks;
58 extern int32 soundPaused;
59 extern bool8 soundOffFlag;
60 extern int32 soundQuality;
61 extern u32 soundBufferLen;
62 extern u32 soundBufferTotalLen;
63 extern u32 soundNextPosition;
64 extern u16 soundFinalWave[1470];
65 extern u16 soundFrameSound[735*30*2];
66 extern int32 soundFrameSoundWritten;
67 extern int32 soundVolume;
69 extern bool8 soundEcho;
70 extern bool8 soundLowPass;
71 extern bool8 soundReverse;
73 #endif // VBA_GBA_SOUND_H