diff options
Diffstat (limited to 'src/emu/sound/k054539.h')
-rw-r--r-- | src/emu/sound/k054539.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/emu/sound/k054539.h b/src/emu/sound/k054539.h new file mode 100644 index 00000000000..61caf8f9d50 --- /dev/null +++ b/src/emu/sound/k054539.h @@ -0,0 +1,43 @@ +/********************************************************* + + Konami 054539 PCM Sound Chip + +*********************************************************/ +#ifndef __K054539_H__ +#define __K054539_H__ + +struct K054539interface { + int region; /* memory regions of sample ROM(s) */ + void (*apan)(double, double); /* Callback for analog output mixing levels (0..1 for each channel) */ + void (*irq)( void ); +}; + + +WRITE8_HANDLER( K054539_0_w ); +READ8_HANDLER( K054539_0_r ); +WRITE8_HANDLER( K054539_1_w ); +READ8_HANDLER( K054539_1_r ); + +//* control flags, may be set at DRIVER_INIT(). +#define K054539_RESET_FLAGS 0 +#define K054539_REVERSE_STEREO 1 +#define K054539_DISABLE_REVERB 2 +#define K054539_UPDATE_AT_KEYON 4 + +void K054539_init_flags(int chip, int flags); + +/* + Note that the eight PCM channels of a K054539 do not have seperate + volume controls. Considering the global attenuation equation may not + be entirely accurate, K054539_set_gain() provides means to control + channel gain. It can be called anywhere but preferrably from + DRIVER_INIT(). + + Parameters: + chip : 0 / 1 + channel : 0 - 7 + gain : 0.0=silent, 1.0=no gain, 2.0=twice as loud, etc. +*/ +void K054539_set_gain(int chip, int channel, double gain); + +#endif /* __K054539_H__ */ |