summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/esqpump.cpp
diff options
context:
space:
mode:
author cam900 <dbtlrchl@naver.com>2018-03-04 01:39:52 +0900
committer R. Belmont <rb6502@users.noreply.github.com>2018-03-03 11:39:52 -0500
commit25472091b626bd01ef47f11389a4b2ebe0fc0008 (patch)
tree7976f48c5d43d22ee8b1fde867ce5d5525dea75e /src/devices/sound/esqpump.cpp
parent6569affe948a868daa23bdaeac7fa9e10ba8f992 (diff)
es5510, taito_en Updates (#3284)
* es5510.* Updates : Add notes Fix dram read/write Convert gpr, instr, dram into std::unique_ptr Add save states Minor cleanup taito_en.* Updates : Add notes Move imperfect_features() into es5510.h Verify ESP Input clock/output channels(from GunBuster Schematics, same in other PCBs?) Add m_bankmask instead runtime tag lookups * es5510.h : Add notes * es5510.h : Fix compile * es5510.h : Compile fixes * esqpump.cpp : Split ES5506 case of interface, Add imperfect_features Because it has not perfectly emulated esqasr.cpp, esqkt.cpp : Add esqpump for es5510 interface taito_en.h : Restore imperfect_features Because sound emulation has still not perfect * es5510.h : Moved imperfect_feature into esqpump.h from this, Add notes * Revert "Moved imperfect_feature into esqpump.h from this", Because the current ES5510 core still has emulation issue * esqpump.cpp : Cleanup unused m_otis/m_otto, Convert e[0x4000] into std::unique_ptr if used * Fix compile * esqkt.cpp : Fix company tags
Diffstat (limited to 'src/devices/sound/esqpump.cpp')
-rw-r--r--src/devices/sound/esqpump.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/sound/esqpump.cpp b/src/devices/sound/esqpump.cpp
index f11356d56f8..f817b0d7274 100644
--- a/src/devices/sound/esqpump.cpp
+++ b/src/devices/sound/esqpump.cpp
@@ -2,7 +2,7 @@
// copyright-holders:Christian Brunschen
/***************************************************************************
- esqpump.c - Ensoniq 5505/5506 to 5510 interface.
+ esqpump.cpp - Ensoniq 5505/5506 to 5510 interface.
By Christian Brunschen
@@ -16,9 +16,12 @@ DEFINE_DEVICE_TYPE(ESQ_5505_5510_PUMP, esq_5505_5510_pump_device, "esq_5505_5510
esq_5505_5510_pump_device::esq_5505_5510_pump_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, ESQ_5505_5510_PUMP, tag, owner, clock)
, device_sound_interface(mconfig, *this)
- , m_stream(nullptr), m_timer(nullptr), m_otis(nullptr), m_esp(nullptr)
+ , m_stream(nullptr), m_timer(nullptr), m_esp(nullptr)
, m_esp_halted(true), ticks_spent_processing(0), samples_processed(0)
{
+#if !PUMP_FAKE_ESP_PROCESSING && PUMP_REPLACE_ESP_PROGRAM
+ e = nullptr;
+#endif
}
void esq_5505_5510_pump_device::device_start()
@@ -44,7 +47,7 @@ void esq_5505_5510_pump_device::device_start()
#endif
#if !PUMP_FAKE_ESP_PROCESSING && PUMP_REPLACE_ESP_PROGRAM
- memset(e, 0, 0x4000 * sizeof(e[0]));
+ e = make_unique_clear<int16_t[]>(0x4000);
ei = 0;
#endif
}