summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ym3812.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/ym3812.h')
-rw-r--r--src/devices/sound/ym3812.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/devices/sound/ym3812.h b/src/devices/sound/ym3812.h
deleted file mode 100644
index 4e6c89afde3..00000000000
--- a/src/devices/sound/ym3812.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-
-#ifndef MAME_SOUND_YM3812_H
-#define MAME_SOUND_YM3812_H
-
-#pragma once
-
-#include "ymfm.h"
-
-
-// ======================> ym3812_device
-
-DECLARE_DEVICE_TYPE(YM3812, ym3812_device);
-
-class ym3812_device : public device_t, public device_sound_interface
-{
-public:
- // YM3812 is OPL2
- using fm_engine = ymopl2_engine;
-
- // constructor
- ym3812_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, device_type type = YM3812);
-
- // configuration helpers
- auto irq_handler() { return m_fm.irq_handler(); }
-
- // read access
- u8 status_r(); // A0=0
- u8 read(offs_t offset);
-
- // write access
- void address_w(u8 data); // A0=0
- void data_w(u8 data); // A0=1
- void write(offs_t offset, u8 data);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_clock_changed() override;
-
- // sound overrides
- virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
-
- // internal state
- u8 m_address; // address register
- sound_stream *m_stream; // sound stream
- fm_engine m_fm; // core FM engine
-};
-
-
-#endif // MAME_SOUND_YM3812_H