Skip to content

Commit 35e80b8

Browse files
committed
ymfm_opl: no need to check for IsOpl2Plus here
1 parent 077ac12 commit 35e80b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3rdparty/ymfm/src/ymfm_opl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class opl_registers_base : public fm_registers_base
243243
uint32_t op_decay_rate(uint32_t opoffs) const { return byte(0x60, 0, 4, opoffs); }
244244
uint32_t op_sustain_level(uint32_t opoffs) const { return byte(0x80, 4, 4, opoffs); }
245245
uint32_t op_release_rate(uint32_t opoffs) const { return byte(0x80, 0, 4, opoffs); }
246-
uint32_t op_waveform(uint32_t opoffs) const { return (IsOpl2Plus && waveform_enable()) ? byte(0xe0, 0, newflag() ? 3 : 2, opoffs) : 0; }
246+
uint32_t op_waveform(uint32_t opoffs) const { return waveform_enable() ? byte(0xe0, 0, newflag() ? 3 : 2, opoffs) : 0; }
247247

248248
protected:
249249
// return a bitfield extracted from a byte

0 commit comments

Comments
 (0)