summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/3526intf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/3526intf.h')
-rw-r--r--src/devices/sound/3526intf.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/devices/sound/3526intf.h b/src/devices/sound/3526intf.h
deleted file mode 100644
index a45825b57b5..00000000000
--- a/src/devices/sound/3526intf.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_SOUND_3526INTF_H
-#define MAME_SOUND_3526INTF_H
-
-#pragma once
-
-
-class ym3526_device : public device_t, public device_sound_interface
-{
-public:
- ym3526_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- // configuration helpers
- auto irq_handler() { return m_irq_handler.bind(); }
-
- u8 read(offs_t offset);
- void write(offs_t offset, u8 data);
-
- u8 status_port_r();
- u8 read_port_r();
- void control_port_w(u8 data);
- void write_port_w(u8 data);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_stop() override;
- virtual void device_reset() override;
- virtual void device_clock_changed() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
-
-private:
- void irq_handler(int irq);
- void timer_handler(int c, const attotime &period);
- void update_request() { m_stream->update(); }
-
- void calculate_rates();
-
- static void static_irq_handler(device_t *param, int irq) { downcast<ym3526_device *>(param)->irq_handler(irq); }
- static void static_timer_handler(device_t *param, int c, const attotime &period) { downcast<ym3526_device *>(param)->timer_handler(c, period); }
- static void static_update_request(device_t *param, int interval) { downcast<ym3526_device *>(param)->update_request(); }
-
- // internal state
- sound_stream * m_stream;
- emu_timer * m_timer[2];
- void * m_chip;
- devcb_write_line m_irq_handler;
-};
-
-DECLARE_DEVICE_TYPE(YM3526, ym3526_device)
-
-#endif // MAME_SOUND_3526INTF_H