xmp.h | xmp.h | |||
---|---|---|---|---|
#ifndef XMP_H | #ifndef XMP_H | |||
#define XMP_H | #define XMP_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#define XMP_VERSION "4.3.6" | #define XMP_VERSION "4.3.7" | |||
#define XMP_VERCODE 0x040306 | #define XMP_VERCODE 0x040307 | |||
#define XMP_VER_MAJOR 4 | #define XMP_VER_MAJOR 4 | |||
#define XMP_VER_MINOR 3 | #define XMP_VER_MINOR 3 | |||
#define XMP_VER_RELEASE 6 | #define XMP_VER_RELEASE 7 | |||
#if defined(_WIN32) && !defined(__CYGWIN__) | #if defined(_WIN32) && !defined(__CYGWIN__) | |||
# if defined(BUILDING_STATIC) | # if defined(BUILDING_STATIC) | |||
# define EXPORT | # define EXPORT | |||
# elif defined(BUILDING_DLL) | # elif defined(BUILDING_DLL) | |||
# define EXPORT __declspec(dllexport) | # define EXPORT __declspec(dllexport) | |||
# else | # else | |||
# define EXPORT __declspec(dllimport) | # define EXPORT __declspec(dllimport) | |||
# endif | # endif | |||
#elif __GNUC__ >= 4 || defined(__HP_cc) | #elif __GNUC__ >= 4 || defined(__HP_cc) | |||
skipping to change at line 108 | skipping to change at line 108 | |||
#define XMP_ERROR_SYSTEM 6 /* System error */ | #define XMP_ERROR_SYSTEM 6 /* System error */ | |||
#define XMP_ERROR_INVALID 7 /* Invalid parameter */ | #define XMP_ERROR_INVALID 7 /* Invalid parameter */ | |||
#define XMP_ERROR_STATE 8 /* Invalid player state */ | #define XMP_ERROR_STATE 8 /* Invalid player state */ | |||
struct xmp_channel { | struct xmp_channel { | |||
int pan; /* Channel pan (0x80 is center) */ | int pan; /* Channel pan (0x80 is center) */ | |||
int vol; /* Channel volume */ | int vol; /* Channel volume */ | |||
#define XMP_CHANNEL_SYNTH (1 << 0) /* Channel is synthesized */ | #define XMP_CHANNEL_SYNTH (1 << 0) /* Channel is synthesized */ | |||
#define XMP_CHANNEL_MUTE (1 << 1) /* Channel is muted */ | #define XMP_CHANNEL_MUTE (1 << 1) /* Channel is muted */ | |||
#define XMP_CHANNEL_SPLIT (1 << 2) /* Split Amiga channel in bits 5-4 */ | #define XMP_CHANNEL_SPLIT (1 << 2) /* Split Amiga channel in bits 5-4 */ | |||
#define XMP_CHANNEL_SURROUND (1 << 4) /* Surround channel */ | ||||
int flg; /* Channel flags */ | int flg; /* Channel flags */ | |||
}; | }; | |||
struct xmp_pattern { | struct xmp_pattern { | |||
int rows; /* Number of rows */ | int rows; /* Number of rows */ | |||
int index[1]; /* Track index */ | int index[1]; /* Track index */ | |||
}; | }; | |||
struct xmp_event { | struct xmp_event { | |||
unsigned char note; /* Note number (0 means no note) */ | unsigned char note; /* Note number (0 means no note) */ | |||
skipping to change at line 234 | skipping to change at line 235 | |||
int spd; /* Initial speed */ | int spd; /* Initial speed */ | |||
int bpm; /* Initial BPM */ | int bpm; /* Initial BPM */ | |||
int len; /* Module length in patterns */ | int len; /* Module length in patterns */ | |||
int rst; /* Restart position */ | int rst; /* Restart position */ | |||
int gvl; /* Global volume */ | int gvl; /* Global volume */ | |||
struct xmp_pattern **xxp; /* Patterns */ | struct xmp_pattern **xxp; /* Patterns */ | |||
struct xmp_track **xxt; /* Tracks */ | struct xmp_track **xxt; /* Tracks */ | |||
struct xmp_instrument *xxi; /* Instruments */ | struct xmp_instrument *xxi; /* Instruments */ | |||
struct xmp_sample *xxs; /* Samples */ | struct xmp_sample *xxs; /* Samples */ | |||
struct xmp_channel xxc[64]; /* Channel info */ | struct xmp_channel xxc[XMP_MAX_CHANNELS]; /* Channel info */ | |||
unsigned char xxo[XMP_MAX_MOD_LENGTH]; /* Orders */ | unsigned char xxo[XMP_MAX_MOD_LENGTH]; /* Orders */ | |||
}; | }; | |||
struct xmp_test_info { | struct xmp_test_info { | |||
char name[XMP_NAME_SIZE]; /* Module title */ | char name[XMP_NAME_SIZE]; /* Module title */ | |||
char type[XMP_NAME_SIZE]; /* Module format */ | char type[XMP_NAME_SIZE]; /* Module format */ | |||
}; | }; | |||
#define XMP_PERIOD_BASE 6847 /* C4 period */ | #define XMP_PERIOD_BASE 6847 /* C4 period */ | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 5 lines changed or added | |||