annotate src/gb/gbSound.h @ 539:a64485223afa

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