summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/esqpump.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/esqpump.h')
-rw-r--r--src/devices/sound/esqpump.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/sound/esqpump.h b/src/devices/sound/esqpump.h
index a95ee84c292..8ebd12bccb0 100644
--- a/src/devices/sound/esqpump.h
+++ b/src/devices/sound/esqpump.h
@@ -20,7 +20,7 @@ public:
esq_5505_5510_pump_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- void set_esp(es5510_device *esp) { m_esp = esp; }
+ template <typename T> void set_esp(T &&tag) { m_esp.set_tag(std::forward<T>(tag)); }
void set_esp_halted(bool esp_halted) {
m_esp_halted = esp_halted;
logerror("ESP-halted -> %d\n", m_esp_halted);
@@ -72,6 +72,7 @@ protected:
virtual void device_start() override;
virtual void device_stop() override;
virtual void device_reset() override;
+ virtual void device_clock_changed() override;
// sound stream update overrides
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
@@ -88,7 +89,7 @@ private:
emu_timer *m_timer;
// ESP signal processor
- es5510_device *m_esp;
+ required_device<es5510_device> m_esp;
// Is the ESP halted by the CPU?
bool m_esp_halted;