diff options
author | 2025-02-01 00:47:03 +0100 | |
---|---|---|
committer | 2025-02-01 00:47:03 +0100 | |
commit | 35e80b8d4726094dc2022b7c5c7155cba2cec734 (patch) | |
tree | 0b2ef7269a3ce6c229097c515a24ed5a5c54a385 /3rdparty | |
parent | 077ac12495bc8fe31614e950c90d4ad41a102217 (diff) |
ymfm_opl: no need to check for IsOpl2Plus here
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/ymfm/src/ymfm_opl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |