com.vwp.sound.mod.modplay.loader
Class ModLoader
java.lang.Object
com.vwp.sound.mod.modplay.loader.ModuleLoader
com.vwp.sound.mod.modplay.loader.ModLoader
public class ModLoader
- extends ModuleLoader
Makes it possible to load a module from a .MOD file
- Author:
- torkjel
|
Constructor Summary |
ModLoader(String name,
byte[] data)
loads a module from a .MOD file |
ModLoader
public ModLoader(String name,
byte[] data)
throws InvalidFormatException,
IOException
- loads a module from a .MOD file
- Parameters:
name - the name of the moduledata - the module data
- Throws:
InvalidFormatException
IOException
getModule
public Module getModule()
- Specified by:
getModule in class ModuleLoader
- Returns:
- the module loaded by this loader
translateEffectNum
public static int translateEffectNum(int effectNum,
int arg1)
throws InvalidFormatException
- translates effect numbers used by the the .MOD format to effect numbers
used by JMOD.
- Parameters:
effectNum - arg1 - is needed for extended effects
- Returns:
- effect number used by JMOD
- Throws:
InvalidFormatException
getIdInfo
public static ModLoader.IDInfo getIdInfo(String id)
readID
public static String readID(RandomAccess raf)
throws IOException
- Throws:
IOException
readName
public static String readName(RandomAccess raf)
throws IOException
- Throws:
IOException
loadPositions
public static int[] loadPositions(int numPos,
RandomAccess raf)
throws IOException
- Throws:
IOException
getPatternCount
public static int getPatternCount(int[] positions)