src/OPL2.cpp
/**
 * When set to true the sustain level of the voice is maintained until released. When false the sound begins to decay
 * immediately after hitting the sustain phase.
 */
When set to true the sustain level of the voice is maintained until released. When false the sound begins to decay
immediately after hitting the sustain phase.
When set to true the sustain level of the voice is maintained until released . When false the sound begins to decay immediately after hitting the sustain phase .
byte OPL2::setMaintainSustain(byte channel, byte operatorNum, bool enable) {
	byte reg = 0x20 + getRegisterOffset(channel, operatorNum);
	if (enable) {
		return setRegister(reg, oplRegisters[reg] | 0x20);
	} else {
		return setRegister(reg, oplRegisters[reg] & 0xDF);
	}
}
byte OPL2 :: setMaintainSustain ( byte channel , byte operatorNum , bool enable ) { byte reg = 0x20 + getRegisterOffset ( channel , operatorNum ) ; if ( enable ) { return setRegister ( reg , oplRegisters [ reg ] | 0x20 ) ; } else { return setRegister ( reg , oplRegisters [ reg ] & 0xDF ) ; } }
When set to true the sustain level of the voice is maintained until released.
When set to true the sustain level of the voice is maintained until released .