trunk/src/mame/audio/seibu.h
| r243210 | r243211 | |
| 45 | 45 | |
| 46 | 46 | DECLARE_READ16_MEMBER( main_word_r ); |
| 47 | 47 | DECLARE_WRITE16_MEMBER( main_word_w ); |
| 48 | | |
| 49 | 48 | DECLARE_WRITE16_MEMBER( main_mustb_w ); |
| 50 | | |
| 51 | 49 | DECLARE_WRITE8_MEMBER( irq_clear_w ); |
| 52 | 50 | DECLARE_WRITE8_MEMBER( rst10_ack_w ); |
| 53 | 51 | DECLARE_WRITE8_MEMBER( rst18_ack_w ); |
| 54 | 52 | DECLARE_WRITE8_MEMBER( bank_w ); |
| 55 | 53 | DECLARE_WRITE8_MEMBER( coin_w ); |
| 56 | | void ym3812_irqhandler(int linestate); |
| 57 | | WRITE_LINE_MEMBER(ym2151_irqhandler); |
| 58 | | void ym2203_irqhandler(int linestate); |
| 54 | WRITE_LINE_MEMBER( fm_irqhandler ); |
| 59 | 55 | DECLARE_READ8_MEMBER( soundlatch_r ); |
| 60 | 56 | DECLARE_READ8_MEMBER( main_data_pending_r ); |
| 61 | 57 | DECLARE_WRITE8_MEMBER( main_data_w ); |
| r243210 | r243211 | |
| 193 | 189 | #define SEIBU_SOUND_SYSTEM_YM3812_INTERFACE(freq1,freq2) \ |
| 194 | 190 | MCFG_SPEAKER_STANDARD_MONO("mono") \ |
| 195 | 191 | \ |
| 196 | | MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \ |
| 197 | | MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym3812_irqhandler)) \ |
| 192 | MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \ |
| 193 | MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \ |
| 198 | 194 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \ |
| 199 | 195 | \ |
| 200 | 196 | MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_LOW) \ |
| r243210 | r243211 | |
| 203 | 199 | #define SEIBU_SOUND_SYSTEM_YM3812_RAIDEN_INTERFACE(freq1,freq2) \ |
| 204 | 200 | MCFG_SPEAKER_STANDARD_MONO("mono") \ |
| 205 | 201 | \ |
| 206 | | MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \ |
| 207 | | MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym3812_irqhandler)) \ |
| 202 | MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \ |
| 203 | MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \ |
| 208 | 204 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \ |
| 209 | 205 | \ |
| 210 | 206 | MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_HIGH) \ |
| r243210 | r243211 | |
| 213 | 209 | #define SEIBU_SOUND_SYSTEM_YM2151_INTERFACE(freq1,freq2) \ |
| 214 | 210 | MCFG_SPEAKER_STANDARD_MONO("mono") \ |
| 215 | 211 | \ |
| 216 | | MCFG_YM2151_ADD("ymsnd", freq1) \ |
| 217 | | MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2151_irqhandler)) \ |
| 212 | MCFG_YM2151_ADD("ymsnd", freq1) \ |
| 213 | MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \ |
| 218 | 214 | MCFG_SOUND_ROUTE(0, "mono", 0.50) \ |
| 219 | 215 | MCFG_SOUND_ROUTE(1, "mono", 0.50) \ |
| 220 | 216 | \ |
| r243210 | r243211 | |
| 224 | 220 | #define SEIBU_AIRRAID_SOUND_SYSTEM_YM2151_INTERFACE(freq1) \ |
| 225 | 221 | MCFG_SPEAKER_STANDARD_MONO("mono") \ |
| 226 | 222 | \ |
| 227 | | MCFG_YM2151_ADD("ymsnd", freq1) \ |
| 228 | | MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2151_irqhandler)) \ |
| 223 | MCFG_YM2151_ADD("ymsnd", freq1) \ |
| 224 | MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \ |
| 229 | 225 | MCFG_SOUND_ROUTE(0, "mono", 0.50) \ |
| 230 | 226 | MCFG_SOUND_ROUTE(1, "mono", 0.50) |
| 231 | 227 | |
| 232 | | #define SEIBU_SOUND_SYSTEM_YM2151_RAIDEN2_INTERFACE(freq1,freq2,regiona, regionb) \ |
| 228 | #define SEIBU_SOUND_SYSTEM_YM2151_RAIDEN2_INTERFACE(freq1, freq2, regiona, regionb) \ |
| 233 | 229 | MCFG_SPEAKER_STANDARD_MONO("mono") \ |
| 234 | 230 | \ |
| 235 | | MCFG_YM2151_ADD("ymsnd", freq1) \ |
| 236 | | MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2151_irqhandler)) \ |
| 231 | MCFG_YM2151_ADD("ymsnd", freq1) \ |
| 232 | MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \ |
| 237 | 233 | MCFG_SOUND_ROUTE(0, "mono", 0.50) \ |
| 238 | 234 | MCFG_SOUND_ROUTE(1, "mono", 0.50) \ |
| 239 | 235 | \ |
| r243210 | r243211 | |
| 247 | 243 | MCFG_SPEAKER_STANDARD_MONO("mono") \ |
| 248 | 244 | \ |
| 249 | 245 | MCFG_SOUND_ADD("ym1", YM2203, freq) \ |
| 250 | | MCFG_YM2203_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2203_irqhandler)) \ |
| 246 | MCFG_YM2203_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \ |
| 251 | 247 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) \ |
| 252 | 248 | \ |
| 253 | 249 | MCFG_SOUND_ADD("ym2", YM2203, freq) \ |
| r243210 | r243211 | |
| 255 | 251 | |
| 256 | 252 | #define SEIBU_SOUND_SYSTEM_ADPCM_INTERFACE \ |
| 257 | 253 | MCFG_SOUND_ADD("adpcm1", SEIBU_ADPCM, 8000) \ |
| 258 | | MCFG_SEIBU_ADPCM_ROMREGION("adpcm1") \ |
| 254 | MCFG_SEIBU_ADPCM_ROMREGION("adpcm1") \ |
| 259 | 255 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \ |
| 260 | 256 | \ |
| 261 | 257 | MCFG_SOUND_ADD("adpcm2", SEIBU_ADPCM, 8000) \ |
| 262 | | MCFG_SEIBU_ADPCM_ROMREGION("adpcm2") \ |
| 258 | MCFG_SEIBU_ADPCM_ROMREGION("adpcm2") \ |
| 263 | 259 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) |
| 264 | 260 | |
| 265 | 261 | /**************************************************************************/ |