summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/centronics
diff options
context:
space:
mode:
author Ramiro Polla <ramiro.polla@gmail.com>2015-09-19 01:35:25 +0200
committer Ramiro Polla <ramiro.polla@gmail.com>2015-09-19 21:05:10 +0200
commit37676cb20392119d0fa9dae551b64d1ea8e334ba (patch)
treef299011db871b05ff8a68bbfa551cadc1c72d3c7 /src/devices/bus/centronics
parent0e025a91fe572a1539e943979c434c585bfb8c6d (diff)
lx810l: use dac instead of speaker
Diffstat (limited to 'src/devices/bus/centronics')
-rw-r--r--src/devices/bus/centronics/epson_lx810l.c10
-rw-r--r--src/devices/bus/centronics/epson_lx810l.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/bus/centronics/epson_lx810l.c b/src/devices/bus/centronics/epson_lx810l.c
index eed6401875f..cabacdf4268 100644
--- a/src/devices/bus/centronics/epson_lx810l.c
+++ b/src/devices/bus/centronics/epson_lx810l.c
@@ -141,7 +141,7 @@ static MACHINE_CONFIG_FRAGMENT( epson_lx810l )
/* audio hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
+ MCFG_DAC_ADD("dac")
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
/* gate array */
@@ -296,7 +296,7 @@ epson_lx810l_t::epson_lx810l_t(const machine_config &mconfig, const char *tag, d
m_pf_stepper(*this, "pf_stepper"),
m_cr_stepper(*this, "cr_stepper"),
m_eeprom(*this, "eeprom"),
- m_speaker(*this, "speaker"),
+ m_dac(*this, "dac"),
m_e05a30(*this, "e05a30"),
m_93c06_clk(0),
m_93c06_cs(0),
@@ -316,7 +316,7 @@ epson_lx810l_t::epson_lx810l_t(const machine_config &mconfig, device_type type,
m_pf_stepper(*this, "pf_stepper"),
m_cr_stepper(*this, "cr_stepper"),
m_eeprom(*this, "eeprom"),
- m_speaker(*this, "speaker"),
+ m_dac(*this, "dac"),
m_e05a30(*this, "e05a30"),
m_93c06_clk(0),
m_93c06_cs(0),
@@ -352,7 +352,7 @@ void epson_lx810l_t::device_start()
void epson_lx810l_t::device_reset()
{
- m_speaker->level_w(0);
+ m_dac->write_unsigned8(0);
}
@@ -578,7 +578,7 @@ WRITE_LINE_MEMBER( epson_lx810l_t::co0_w )
WRITE_LINE_MEMBER( epson_lx810l_t::co1_w )
{
- m_speaker->level_w(state);
+ m_dac->write_unsigned8(0 - !state);
}
diff --git a/src/devices/bus/centronics/epson_lx810l.h b/src/devices/bus/centronics/epson_lx810l.h
index 71bcc68db6a..e37f05b1308 100644
--- a/src/devices/bus/centronics/epson_lx810l.h
+++ b/src/devices/bus/centronics/epson_lx810l.h
@@ -16,7 +16,7 @@
#include "machine/e05a30.h"
#include "machine/eepromser.h"
#include "machine/steppers.h"
-#include "sound/speaker.h"
+#include "sound/dac.h"
//**************************************************************************
@@ -102,7 +102,7 @@ private:
required_device<stepper_device> m_pf_stepper;
required_device<stepper_device> m_cr_stepper;
required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<speaker_sound_device> m_speaker;
+ required_device<dac_device> m_dac;
required_device<e05a30_device> m_e05a30;
int m_93c06_clk;