diff options
Diffstat (limited to 'src/emu/sound/k007232.h')
-rw-r--r-- | src/emu/sound/k007232.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/emu/sound/k007232.h b/src/emu/sound/k007232.h new file mode 100644 index 00000000000..f1736e96a9c --- /dev/null +++ b/src/emu/sound/k007232.h @@ -0,0 +1,32 @@ +/*********************************************************/ +/* Konami PCM controller */ +/*********************************************************/ +#ifndef __KDAC_A_H__ +#define __KDAC_A_H__ + +struct K007232_interface +{ + int bank; /* memory regions */ + void (*portwritehandler)(int); +}; + +WRITE8_HANDLER( K007232_write_port_0_w ); +WRITE8_HANDLER( K007232_write_port_1_w ); +WRITE8_HANDLER( K007232_write_port_2_w ); +READ8_HANDLER( K007232_read_port_0_r ); +READ8_HANDLER( K007232_read_port_1_r ); +READ8_HANDLER( K007232_read_port_2_r ); + +void K007232_set_bank( int chip, int chABank, int chBBank ); + +/* + The 007232 has two channels and produces two outputs. The volume control + is external, however to make it easier to use we handle that inside the + emulation. You can control volume and panning: for each of the two channels + you can set the volume of the two outputs. If panning is not required, + then volumeB will be 0 for channel 0, and volumeA will be 0 for channel 1. + Volume is in the range 0-255. +*/ +void K007232_set_volume(int chip,int channel,int volumeA,int volumeB); + +#endif |