mirror of
https://github.com/holub/mame
synced 2025-06-10 14:52:42 +03:00
lx810l: use dac instead of speaker
This commit is contained in:
parent
0e025a91fe
commit
37676cb203
@ -141,7 +141,7 @@ static MACHINE_CONFIG_FRAGMENT( epson_lx810l )
|
|||||||
|
|
||||||
/* audio hardware */
|
/* audio hardware */
|
||||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||||
MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
|
MCFG_DAC_ADD("dac")
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||||
|
|
||||||
/* gate array */
|
/* 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_pf_stepper(*this, "pf_stepper"),
|
||||||
m_cr_stepper(*this, "cr_stepper"),
|
m_cr_stepper(*this, "cr_stepper"),
|
||||||
m_eeprom(*this, "eeprom"),
|
m_eeprom(*this, "eeprom"),
|
||||||
m_speaker(*this, "speaker"),
|
m_dac(*this, "dac"),
|
||||||
m_e05a30(*this, "e05a30"),
|
m_e05a30(*this, "e05a30"),
|
||||||
m_93c06_clk(0),
|
m_93c06_clk(0),
|
||||||
m_93c06_cs(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_pf_stepper(*this, "pf_stepper"),
|
||||||
m_cr_stepper(*this, "cr_stepper"),
|
m_cr_stepper(*this, "cr_stepper"),
|
||||||
m_eeprom(*this, "eeprom"),
|
m_eeprom(*this, "eeprom"),
|
||||||
m_speaker(*this, "speaker"),
|
m_dac(*this, "dac"),
|
||||||
m_e05a30(*this, "e05a30"),
|
m_e05a30(*this, "e05a30"),
|
||||||
m_93c06_clk(0),
|
m_93c06_clk(0),
|
||||||
m_93c06_cs(0),
|
m_93c06_cs(0),
|
||||||
@ -352,7 +352,7 @@ void epson_lx810l_t::device_start()
|
|||||||
|
|
||||||
void epson_lx810l_t::device_reset()
|
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 )
|
WRITE_LINE_MEMBER( epson_lx810l_t::co1_w )
|
||||||
{
|
{
|
||||||
m_speaker->level_w(state);
|
m_dac->write_unsigned8(0 - !state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "machine/e05a30.h"
|
#include "machine/e05a30.h"
|
||||||
#include "machine/eepromser.h"
|
#include "machine/eepromser.h"
|
||||||
#include "machine/steppers.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_pf_stepper;
|
||||||
required_device<stepper_device> m_cr_stepper;
|
required_device<stepper_device> m_cr_stepper;
|
||||||
required_device<eeprom_serial_93cxx_device> m_eeprom;
|
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;
|
required_device<e05a30_device> m_e05a30;
|
||||||
|
|
||||||
int m_93c06_clk;
|
int m_93c06_clk;
|
||||||
|
Loading…
Reference in New Issue
Block a user