diff --git a/src/mess/drivers/orao.c b/src/mess/drivers/orao.c index 6c275196333..04090619ef8 100644 --- a/src/mess/drivers/orao.c +++ b/src/mess/drivers/orao.c @@ -14,7 +14,7 @@ #include "emu.h" #include "cpu/m6502/m6502.h" -#include "sound/dac.h" +#include "sound/speaker.h" #include "sound/wave.h" #include "includes/orao.h" #include "imagedev/cassette.h" @@ -183,8 +183,8 @@ static MACHINE_CONFIG_START( orao, orao_state ) /* audio hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("dac", DAC, 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 8.00) + MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mess/includes/orao.h b/src/mess/includes/orao.h index 6d63dc86049..abd6a619529 100644 --- a/src/mess/includes/orao.h +++ b/src/mess/includes/orao.h @@ -8,7 +8,7 @@ #ifndef ORAO_H_ #define ORAO_H_ -#include "sound/dac.h" +#include "sound/speaker.h" #include "imagedev/cassette.h" class orao_state : public driver_device @@ -19,9 +19,10 @@ public: m_memory(*this, "memory"), m_video_ram(*this, "video_ram"), m_maincpu(*this, "maincpu"), - m_dac(*this, "dac"), + m_speaker(*this, "speaker"), m_cassette(*this, "cassette"), - m_line(*this, "LINE") + m_line(*this, "LINE"), + m_beep(0) { } DECLARE_READ8_MEMBER(orao_io_r); @@ -36,9 +37,10 @@ private: required_shared_ptr m_memory; required_shared_ptr m_video_ram; required_device m_maincpu; - required_device m_dac; + required_device m_speaker; required_device m_cassette; required_ioport_array<20> m_line; + UINT8 m_beep; }; #endif /* ORAO_H_ */ diff --git a/src/mess/machine/orao.c b/src/mess/machine/orao.c index 681b9a415eb..5540d9092fb 100644 --- a/src/mess/machine/orao.c +++ b/src/mess/machine/orao.c @@ -74,6 +74,7 @@ WRITE8_MEMBER(orao_state::orao_io_w) { if (offset == 0x0800) { - m_dac->write_unsigned8(data); //beeper + m_speaker->level_w(m_beep); + m_beep ^= 1; } }