annotate src/gba/GBASound.h @ 30:48369c6aeaa0 compile-milestone

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