diff options
Diffstat (limited to 'src/mame/sega/segaorun.cpp')
-rw-r--r-- | src/mame/sega/segaorun.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/sega/segaorun.cpp b/src/mame/sega/segaorun.cpp index fa92ce85778..05b3e974f03 100644 --- a/src/mame/sega/segaorun.cpp +++ b/src/mame/sega/segaorun.cpp @@ -831,7 +831,7 @@ void segaorun_state::update_main_irqs() // boost interleave during VBLANK and IRQ2 signals if (m_vblank_irq_state || m_irq2_state) - machine().scheduler().perfect_quantum(attotime::from_usec(100)); + machine().scheduler().add_quantum(attotime::from_ticks(4, m_maincpu->clock()), attotime::from_usec(100)); } @@ -912,7 +912,7 @@ void segaorun_state::sound_portmap(address_map &map) // GENERIC PORT DEFINITIONS //************************************************************************** -CUSTOM_INPUT_MEMBER(segaorun_state::bankmotor_pos_r) +ioport_value segaorun_state::bankmotor_pos_r() { return m_bankmotor_pos >> 8 & 0xff; } @@ -963,7 +963,7 @@ static INPUT_PORTS_START( outrun_generic ) PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_START("ADC.3") - PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(segaorun_state, bankmotor_pos_r) + PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(FUNC(segaorun_state::bankmotor_pos_r)) INPUT_PORTS_END @@ -1202,15 +1202,14 @@ void segaorun_state::outrun_base(machine_config &config) SEGAIC16_ROAD(config, m_segaic16road, 0); // sound hardware - SPEAKER(config, "lspeaker").front_left(); - SPEAKER(config, "rspeaker").front_right(); + SPEAKER(config, "speaker", 2).front(); - YM2151(config, "ymsnd", SOUND_CLOCK/4).add_route(0, "lspeaker", 0.43).add_route(1, "rspeaker", 0.43); + YM2151(config, "ymsnd", SOUND_CLOCK/4).add_route(0, "speaker", 0.43, 0).add_route(1, "speaker", 0.43, 1); segapcm_device &pcm(SEGAPCM(config, "pcm", SOUND_CLOCK/4)); pcm.set_bank(segapcm_device::BANK_512); - pcm.add_route(0, "lspeaker", 1.0); - pcm.add_route(1, "rspeaker", 1.0); + pcm.add_route(0, "speaker", 1.0, 0); + pcm.add_route(1, "speaker", 1.0, 1); } |