Mercurial > vba-clojure
view src/gba/GBASound.h @ 506:130ba9f49db5
added function to slice up an image into an appropriate representation for the GB.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 20 Jun 2012 16:50:36 -0500 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #ifndef VBA_GBA_SOUND_H2 #define VBA_GBA_SOUND_H4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10008 #include "zlib.h"9 #include "../Port.h"11 #define NR10 0x6012 #define NR11 0x6213 #define NR12 0x6314 #define NR13 0x6415 #define NR14 0x6516 #define NR21 0x6817 #define NR22 0x6918 #define NR23 0x6c19 #define NR24 0x6d20 #define NR30 0x7021 #define NR31 0x7222 #define NR32 0x7323 #define NR33 0x7424 #define NR34 0x7525 #define NR41 0x7826 #define NR42 0x7927 #define NR43 0x7c28 #define NR44 0x7d29 #define NR50 0x8030 #define NR51 0x8131 #define NR52 0x8432 #define SGCNT0_H 0x8233 #define FIFOA_L 0xa034 #define FIFOA_H 0xa235 #define FIFOB_L 0xa436 #define FIFOB_H 0xa638 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