LibXM7
Loading...
Searching...
No Matches
Enumerations | Functions
libxm7.h File Reference

Global include of libXM7. More...

#include <nds/ndstypes.h>

Enumerations

enum  XM7_Error {
  XM7_NO_ERROR = 0x00 ,
  XM7_ERR_NOT_A_VALID_MODULE = 0x01 ,
  XM7_ERR_UNKNOWN_MODULE_VERSION = 0x02 ,
  XM7_ERR_UNSUPPORTED_NUMBER_OF_CHANNELS = 0x03 ,
  XM7_ERR_UNSUPPORTED_PATTERN_HEADER = 0x08 ,
  XM7_ERR_INCOMPLETE_PATTERN = 0x09 ,
  XM7_ERR_UNSUPPORTED_INSTRUMENT_HEADER = 0x10 ,
  XM7_ERR_NOT_ENOUGH_MEMORY = 0x100
}
 List of the error codes for XM7_LoadXM() and XM7_LoadMOD(). More...
 
enum  XM7_PanningDisplacementStyles {
  XM7_HARD_PANNING_DISPLACEMENT = 0 ,
  XM7_MONO_PANNING_DISPLACEMENT = 64 ,
  XM7_DEFAULT_PANNING_DISPLACEMENT = 42
}
 Panning displacement styles. More...
 
enum  XM7_PanningStyles {
  XM7_PANNING_TYPE_NORMAL = 0x00 ,
  XM7_PANNING_TYPE_AMIGA = 0x01
}
 Panning styles. More...
 
enum  XM7_ReplayStyles {
}
 Replay style flags. More...
 

Functions

void XM7_Initialize (void)
 Perform initialization of the library.
 
XM7_Error XM7_LoadMOD (XM7_ModuleManager_Type *Module, const void *MODModule_)
 Load a MOD into a XM7_ModuleManager_Type structure.
 
XM7_Error XM7_LoadXM (XM7_ModuleManager_Type *Module, const void *XMModule_)
 Load an XM into a XM7_ModuleManager_Type structure.
 
void XM7_PlayModule (XM7_ModuleManager_Type *TheModule)
 This function makes the module start playing.
 
void XM7_PlayModuleFromPos (XM7_ModuleManager_Type *TheModule, u8 position)
 This function makes the module start playing from a given position.
 
void XM7_SetPanningStyle (XM7_ModuleManager_Type *Module, XM7_PanningStyles style, XM7_PanningDisplacementStyles displacement)
 This function configures how the panning is managed in the reproduction.
 
void XM7_SetReplayStyle (XM7_ModuleManager_Type *Module, XM7_ReplayStyles style)
 Setup the replay style of the module.
 
void XM7_StopModule (void)
 This function stops the module.
 
void XM7_UnloadMOD (XM7_ModuleManager_Type *Module)
 This function frees all the allocated memory thus unloading the module.
 
void XM7_UnloadXM (XM7_ModuleManager_Type *Module)
 This function frees all the allocated memory thus unloading the module.
 

Detailed Description

Global include of libXM7.