347 |
eg_opt_t::eg_opt_t() { |
eg_opt_t::eg_opt_t() { |
348 |
AttackCancel = true; |
AttackCancel = true; |
349 |
AttackHoldCancel = true; |
AttackHoldCancel = true; |
350 |
DecayCancel = true; |
Decay1Cancel = true; |
351 |
|
Decay2Cancel = true; |
352 |
ReleaseCancel = true; |
ReleaseCancel = true; |
353 |
} |
} |
354 |
|
|
355 |
void eg_opt_t::serialize(Serialization::Archive* archive) { |
void eg_opt_t::serialize(Serialization::Archive* archive) { |
356 |
SRLZ(AttackCancel); |
SRLZ(AttackCancel); |
357 |
SRLZ(AttackHoldCancel); |
SRLZ(AttackHoldCancel); |
358 |
SRLZ(DecayCancel); |
SRLZ(Decay1Cancel); |
359 |
|
SRLZ(Decay2Cancel); |
360 |
SRLZ(ReleaseCancel); |
SRLZ(ReleaseCancel); |
361 |
} |
} |
362 |
|
|
1739 |
unsigned char byte = lsde->ReadUint8(); |
unsigned char byte = lsde->ReadUint8(); |
1740 |
EGOptions.AttackCancel = byte & 1; |
EGOptions.AttackCancel = byte & 1; |
1741 |
EGOptions.AttackHoldCancel = byte & (1 << 1); |
EGOptions.AttackHoldCancel = byte & (1 << 1); |
1742 |
EGOptions.DecayCancel = byte & (1 << 2); |
EGOptions.Decay1Cancel = byte & (1 << 2); |
1743 |
EGOptions.ReleaseCancel = byte & (1 << 3); |
EGOptions.Decay2Cancel = byte & (1 << 3); |
1744 |
|
EGOptions.ReleaseCancel = byte & (1 << 4); |
1745 |
} |
} |
1746 |
|
|
1747 |
pVelocityAttenuationTable = GetVelocityTable(VelocityResponseCurve, |
pVelocityAttenuationTable = GetVelocityTable(VelocityResponseCurve, |
2257 |
*pByte = |
*pByte = |
2258 |
(EGOptions.AttackCancel ? 1 : 0) | |
(EGOptions.AttackCancel ? 1 : 0) | |
2259 |
(EGOptions.AttackHoldCancel ? (1<<1) : 0) | |
(EGOptions.AttackHoldCancel ? (1<<1) : 0) | |
2260 |
(EGOptions.DecayCancel ? (1<<2) : 0) | |
(EGOptions.Decay1Cancel ? (1<<2) : 0) | |
2261 |
(EGOptions.ReleaseCancel ? (1<<3) : 0); |
(EGOptions.Decay2Cancel ? (1<<3) : 0) | |
2262 |
|
(EGOptions.ReleaseCancel ? (1<<4) : 0); |
2263 |
} |
} |
2264 |
} |
} |
2265 |
|
|