diff minijss/jssmod.h @ 2285:25398f2eba64

Merge.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 18 Jun 2019 14:23:02 +0300
parents fc58f62f100c
children dcf1016f3d27
line wrap: on
line diff
--- a/minijss/jssmod.h	Tue Jun 18 07:38:05 2019 +0300
+++ b/minijss/jssmod.h	Tue Jun 18 14:23:02 2019 +0300
@@ -1,7 +1,7 @@
 /*
  * miniJSS - Module structure and handling routines
  * Programmed and designed by Matti 'ccr' Hamalainen
- * (C) Copyright 2006-2015 Tecnic Software productions (TNSP)
+ * (C) Copyright 2006-2019 Tecnic Software productions (TNSP)
  */
 #ifndef JSSMOD_H
 #define JSSMOD_H
@@ -143,7 +143,9 @@
 
 typedef struct
 {
-    int nrows, nchannels;
+    int nrows, nchannels, nmap;
+    BOOL *used;
+    Uint8 *map;
     JSSNote *data;
 } JSSPattern;
 
@@ -180,7 +182,7 @@
 
 #ifdef JSS_SUP_JSSMOD
 
-#define JSSMOD_VERSION    (0x20)
+#define JSSMOD_VERSION    (0x30)
 
 enum
 {
@@ -290,6 +292,9 @@
 {
     Uint32 size;
     Uint16 nrows;
+    Uint16 nchannels; // may differ from JSSMODHeader::nchannels
+    // IF nchannels != JSSMODHeader::nchannels, then:
+    // Uint8 map[JSSMODPattern::nchannels];
 } JSSMODPattern;
 
 #endif