diff options
Diffstat (limited to 'src/emu/sound/tms36xx.h')
-rw-r--r-- | src/emu/sound/tms36xx.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/emu/sound/tms36xx.h b/src/emu/sound/tms36xx.h index 45a4fa887d9..ccdfdb136f2 100644 --- a/src/emu/sound/tms36xx.h +++ b/src/emu/sound/tms36xx.h @@ -1,5 +1,7 @@ -#ifndef TMS36XX_SOUND_H -#define TMS36XX_SOUND_H +#pragma once + +#ifndef __TMS36XX_H__ +#define __TMS36XX_H__ /* subtypes */ #define MM6221AA 21 /* Phoenix (fixed melodies) */ @@ -7,7 +9,9 @@ #define TMS3617 17 /* Monster Bash (13 notes, six outputs) */ /* The interface structure */ -struct TMS36XXinterface { +typedef struct _tms36xx_interface tms36xx_interface; +struct _tms36xx_interface +{ int subtype; double decay[6]; /* decay times for the six harmonic notes */ double speed; /* tune speed (meaningful for the TMS3615 only) */ @@ -22,4 +26,4 @@ extern void tms36xx_note_w(int chip, int octave, int note); /* TMS3617 interface functions */ extern void tms3617_enable_w(int chip, int enable); -#endif +#endif /* __TMS36XX_H__ */ |