fix copy-paste bug in compressor (sustain/release rate alone didn't packed)
This commit is contained in:
parent
299b3fc236
commit
867e76c546
|
@ -934,10 +934,10 @@ int opm_serialize_fm_stream(opm_channel_t* chctx) {
|
|||
// then parse mask
|
||||
// dirty but should work :)
|
||||
int adsrmask = 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG70) << (OPM_REC_OP_SHIFTMUL * 0)) ? 1 : 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG70) << (OPM_REC_OP_SHIFTMUL * 1)) ? 2 : 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG70) << (OPM_REC_OP_SHIFTMUL * 2)) ? 4 : 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG70) << (OPM_REC_OP_SHIFTMUL * 3)) ? 8 : 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG80) << (OPM_REC_OP_SHIFTMUL * 0)) ? 1 : 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG80) << (OPM_REC_OP_SHIFTMUL * 1)) ? 2 : 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG80) << (OPM_REC_OP_SHIFTMUL * 2)) ? 4 : 0;
|
||||
adsrmask |= ef & ((OPM_REC_REG50 | OPM_REC_REG60 | OPM_REC_REG70 | OPM_REC_REG80) << (OPM_REC_OP_SHIFTMUL * 3)) ? 8 : 0;
|
||||
|
||||
int cmdmask = 0;
|
||||
cmdmask |= ef & ((OPM_REC_REG30 | OPM_REC_REG40 | OPM_REC_REG90) << (OPM_REC_OP_SHIFTMUL * 0)) ? 1 : 0;
|
||||
|
|
Loading…
Reference in a new issue