This section describes all data types used in MIDAS module playback.
typedef struct
{
char instName[32];
} MIDASinstrumentInfo;
Instrument information structure.
This structure is used with the function MIDASgetInstrumentInfo to query information about an instrument in a module. MIDASgetInstrumentInfo fills a MIDASinstrumentInfo structure with the information.
typedef ... MIDASmodule;
MIDASmodule is a module handle that defines a module that has been loaded into memory.
typedef struct
{
char songName[32];
unsigned songLength;
unsigned numPatterns;
unsigned numInstruments;
unsigned numChannels;
} MIDASmoduleInfo;
Module information structure.
This structure is used with the function MIDASgetModuleInfo to query information about an module. MIDASgetModuleInfo fills a MIDASmoduleInfo structure with the information.
typedef ... MIDASmodulePlayHandle;
MIDASmodulePlayHandle is a module playback handle that defines a module or module section that is being played. One module can be played several times simultaneously.
typedef struct
{
unsigned position;
unsigned pattern;
unsigned row;
int syncInfo;
unsigned songLoopCount;
} MIDASplayStatus;
Module status information structure.
This structure is used with the function MIDASgetPlayStatus to query the current module playback status. MIDASgetPlayStatus fills a MIDASplayStatus structure with the information.
Some more information about the synchronization commands: In FastTracker 2 and Scream Tracker 3 modules, the command Wxx is used as a music synchronization command. The infobyte of this command is available as the music synchronization command infobyte above.