From 35e80b8d4726094dc2022b7c5c7155cba2cec734 Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 1 Feb 2025 00:47:03 +0100 Subject: [PATCH] ymfm_opl: no need to check for IsOpl2Plus here --- 3rdparty/ymfm/src/ymfm_opl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/ymfm/src/ymfm_opl.h b/3rdparty/ymfm/src/ymfm_opl.h index a6c6bc2ca71..71b098e974a 100644 --- a/3rdparty/ymfm/src/ymfm_opl.h +++ b/3rdparty/ymfm/src/ymfm_opl.h @@ -243,7 +243,7 @@ public: uint32_t op_decay_rate(uint32_t opoffs) const { return byte(0x60, 0, 4, opoffs); } uint32_t op_sustain_level(uint32_t opoffs) const { return byte(0x80, 4, 4, opoffs); } uint32_t op_release_rate(uint32_t opoffs) const { return byte(0x80, 0, 4, opoffs); } - uint32_t op_waveform(uint32_t opoffs) const { return (IsOpl2Plus && waveform_enable()) ? byte(0xe0, 0, newflag() ? 3 : 2, opoffs) : 0; } + uint32_t op_waveform(uint32_t opoffs) const { return waveform_enable() ? byte(0xe0, 0, newflag() ? 3 : 2, opoffs) : 0; } protected: // return a bitfield extracted from a byte