diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-03-26 15:14:52 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-03-26 15:15:32 -0400 |
commit | 11f9f6166b8d27c613cf88c88dca9985225aa612 (patch) | |
tree | e0889a5f0fa964c7a73541ba70587839683dcbc3 /src/devices | |
parent | 5ba56a827b1c856a7ca2dd04256b8adc4fed1c67 (diff) |
ym2151: Add YM2414 as alias (no attempt at emulating distinctive features at the moment) (nw)
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/sound/ym2151.cpp | 11 | ||||
-rw-r--r-- | src/devices/sound/ym2151.h | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/devices/sound/ym2151.cpp b/src/devices/sound/ym2151.cpp index 64b02822644..3a5b1076c00 100644 --- a/src/devices/sound/ym2151.cpp +++ b/src/devices/sound/ym2151.cpp @@ -6,6 +6,7 @@ DEFINE_DEVICE_TYPE(YM2151, ym2151_device, "ym2151", "Yamaha YM2151 OPM") DEFINE_DEVICE_TYPE(YM2164, ym2164_device, "ym2164", "Yamaha YM2164 OPP") +DEFINE_DEVICE_TYPE(YM2414, ym2414_device, "ym2414", "Yamaha YM2414 OPZ") #define FREQ_SH 16 /* 16.16 fixed point (frequency calculations) */ @@ -1716,6 +1717,16 @@ ym2164_device::ym2164_device(const machine_config &mconfig, const char *tag, dev //------------------------------------------------- +// ym2414_device - constructor +//------------------------------------------------- + +ym2414_device::ym2414_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) + : ym2151_device(mconfig, YM2414, tag, owner, clock) +{ +} + + +//------------------------------------------------- // read - read from the device //------------------------------------------------- diff --git a/src/devices/sound/ym2151.h b/src/devices/sound/ym2151.h index ee32c6f3ed6..d5e455f3fbd 100644 --- a/src/devices/sound/ym2151.h +++ b/src/devices/sound/ym2151.h @@ -282,10 +282,19 @@ protected: virtual void write_reg(int r, int v) override; }; +// ======================> ym2414_device + +class ym2414_device : public ym2151_device +{ +public: + // construction/destruction + ym2414_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); +}; // device type definition DECLARE_DEVICE_TYPE(YM2151, ym2151_device) DECLARE_DEVICE_TYPE(YM2164, ym2164_device) +DECLARE_DEVICE_TYPE(YM2414, ym2414_device) #endif // MAME_SOUND_YM2151_H |