diff src/gba/GBASound.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/gba/GBASound.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,73 @@
     1.4 +#ifndef VBA_GBA_SOUND_H
     1.5 +#define VBA_GBA_SOUND_H
     1.6 +
     1.7 +#if _MSC_VER > 1000
     1.8 +#pragma once
     1.9 +#endif // _MSC_VER > 1000
    1.10 +
    1.11 +#include "zlib.h"
    1.12 +#include "../Port.h"
    1.13 +
    1.14 +#define NR10 0x60
    1.15 +#define NR11 0x62
    1.16 +#define NR12 0x63
    1.17 +#define NR13 0x64
    1.18 +#define NR14 0x65
    1.19 +#define NR21 0x68
    1.20 +#define NR22 0x69
    1.21 +#define NR23 0x6c
    1.22 +#define NR24 0x6d
    1.23 +#define NR30 0x70
    1.24 +#define NR31 0x72
    1.25 +#define NR32 0x73
    1.26 +#define NR33 0x74
    1.27 +#define NR34 0x75
    1.28 +#define NR41 0x78
    1.29 +#define NR42 0x79
    1.30 +#define NR43 0x7c
    1.31 +#define NR44 0x7d
    1.32 +#define NR50 0x80
    1.33 +#define NR51 0x81
    1.34 +#define NR52 0x84
    1.35 +#define SGCNT0_H 0x82
    1.36 +#define FIFOA_L 0xa0
    1.37 +#define FIFOA_H 0xa2
    1.38 +#define FIFOB_L 0xa4
    1.39 +#define FIFOB_H 0xa6
    1.40 +
    1.41 +extern void soundTick();
    1.42 +extern void soundShutdown();
    1.43 +extern bool soundInit();
    1.44 +extern void soundPause();
    1.45 +extern void soundResume();
    1.46 +extern void soundEnableChannels(int);
    1.47 +extern void soundDisableChannels(int);
    1.48 +extern int  soundGetEnabledChannels();
    1.49 +extern void soundReset();
    1.50 +extern void soundSaveGame(gzFile);
    1.51 +extern void soundReadGame(gzFile, int);
    1.52 +extern void soundEvent(u32, u8);
    1.53 +extern void soundEvent(u32, u16);
    1.54 +extern void soundTimerOverflow(int);
    1.55 +extern void soundSetQuality(int);
    1.56 +
    1.57 +typedef int32 soundtick_t;
    1.58 +
    1.59 +extern soundtick_t SOUND_CLOCK_TICKS;
    1.60 +extern soundtick_t soundTicks;
    1.61 +extern int32       soundPaused;
    1.62 +extern bool8       soundOffFlag;
    1.63 +extern int32       soundQuality;
    1.64 +extern u32         soundBufferLen;
    1.65 +extern u32         soundBufferTotalLen;
    1.66 +extern u32         soundNextPosition;
    1.67 +extern u16         soundFinalWave[1470];
    1.68 +extern u16         soundFrameSound[735*30*2];
    1.69 +extern int32       soundFrameSoundWritten;
    1.70 +extern int32       soundVolume;
    1.71 +
    1.72 +extern bool8 soundEcho;
    1.73 +extern bool8 soundLowPass;
    1.74 +extern bool8 soundReverse;
    1.75 +
    1.76 +#endif // VBA_GBA_SOUND_H