/[svn]/libgig/trunk/src/gig.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gig.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3323 by schoenebeck, Thu Jul 20 22:09:54 2017 UTC revision 3324 by schoenebeck, Fri Jul 21 13:05:39 2017 UTC
# Line 347  namespace { Line 347  namespace {
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    
# Line 1737  namespace { Line 1739  namespace {
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,
# Line 2254  namespace { Line 2257  namespace {
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    

Legend:
Removed from v.3323  
changed lines
  Added in v.3324

  ViewVC Help
Powered by ViewVC