@@ -415,6 +415,7 @@ typedef struct FILTER {
415415#define EF_SUSTAIN 2
416416#define EF_LOOP 4
417417#define EF_VOLENV 8
418+ #define EF_ITMODE 16
418419
419420/* New Note Action Flags */
420421#define NNA_CUT 0
@@ -452,17 +453,17 @@ typedef struct FILTER {
452453#define LAST_PATTERN (UWORD)(-1) /* special ``end of song'' pattern */
453454
454455typedef struct ENVPR {
455- UBYTE flg ; /* envelope flag */
456- UBYTE pts ; /* number of envelope points */
457- UBYTE susbeg ; /* envelope sustain index begin */
458- UBYTE susend ; /* envelope sustain index end */
459- BOOL susactive ; /* Indicate if sustain is active (no interpolation) */
460- UBYTE beg ; /* envelope loop begin */
461- UBYTE end ; /* envelope loop end */
462- SWORD p ; /* current envelope counter */
463- UWORD index ; /* envelope index for the point after the current one */
464- SWORD lastvalue ;/* the last calculated value */
465- ENVPT * env ; /* envelope points */
456+ UBYTE flg ; /* envelope flag */
457+ UBYTE pts ; /* number of envelope points */
458+ UBYTE susbeg ; /* envelope sustain index begin */
459+ UBYTE susend ; /* envelope sustain index end */
460+ UBYTE loopbeg ; /* envelope loop begin */
461+ UBYTE loopend ; /* envelope loop end */
462+ SWORD tick ; /* current envelope counter */
463+ UWORD index ; /* envelope index for the point after the current one */
464+ BOOL interpolate ; /* Indicate if interpolation should be done */
465+ SWORD lastvalue ; /* the last calculated value */
466+ ENVPT * env ; /* envelope points */
466467} ENVPR ;
467468
468469typedef struct MP_CHANNEL {
0 commit comments