diff src/gb/gbSound.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/gb/gbSound.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,51 @@
     1.4 +#ifndef VBA_GB_SOUND_H
     1.5 +#define VBA_GB_SOUND_H
     1.6 +
     1.7 +#if _MSC_VER > 1000
     1.8 +#pragma once
     1.9 +#endif // _MSC_VER > 1000
    1.10 +
    1.11 +#define NR10 0xff10
    1.12 +#define NR11 0xff11
    1.13 +#define NR12 0xff12
    1.14 +#define NR13 0xff13
    1.15 +#define NR14 0xff14
    1.16 +#define NR21 0xff16
    1.17 +#define NR22 0xff17
    1.18 +#define NR23 0xff18
    1.19 +#define NR24 0xff19
    1.20 +#define NR30 0xff1a
    1.21 +#define NR31 0xff1b
    1.22 +#define NR32 0xff1c
    1.23 +#define NR33 0xff1d
    1.24 +#define NR34 0xff1e
    1.25 +#define NR41 0xff20
    1.26 +#define NR42 0xff21
    1.27 +#define NR43 0xff22
    1.28 +#define NR44 0xff23
    1.29 +#define NR50 0xff24
    1.30 +#define NR51 0xff25
    1.31 +#define NR52 0xff26
    1.32 +
    1.33 +#define SOUND_EVENT(address, value) \
    1.34 +    gbSoundEvent(address, value)
    1.35 +
    1.36 +extern void gbSoundTick();
    1.37 +extern void gbSoundPause();
    1.38 +extern void gbSoundResume();
    1.39 +extern void gbSoundEnable(int);
    1.40 +extern void gbSoundDisable(int);
    1.41 +extern int gbSoundGetEnable();
    1.42 +extern void gbSoundReset();
    1.43 +extern void gbSoundSaveGame(gzFile);
    1.44 +extern void gbSoundReadGame(int, gzFile);
    1.45 +extern void gbSoundEvent(register u16, register int);
    1.46 +extern void gbSoundSetQuality(int);
    1.47 +
    1.48 +typedef int32 soundtick_t;
    1.49 +
    1.50 +extern soundtick_t soundTicks;
    1.51 +extern int32       soundQuality;
    1.52 +extern soundtick_t SOUND_CLOCK_TICKS;
    1.53 +
    1.54 +#endif // VBA_GB_SOUND_H