|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object micromod.ModuleLoader
Nested Class Summary | |
protected static class |
ModuleLoader.ModFormatInfo
A type for the module format information. |
Constructor Summary | |
ModuleLoader()
|
Method Summary | |
protected static ModuleLoader.ModFormatInfo |
getFormatInfo(java.lang.String id)
|
static boolean |
identify(java.io.DataInput modStream)
|
protected static byte |
nibbleDecimal2Bin(byte decValue)
Return a 2-digit decimal value written as hex as a binary number. |
static Module |
read(java.io.DataInput dataInput)
|
protected static Instrument |
readInstrument(java.io.DataInput dataInput)
Read in the data for an Instrument, and return a new Instrument containing that data. |
protected static Sequence.Pattern |
readPattern(java.io.DataInput dataInput,
int numChannels)
Read the data for a Pattern into a new Pattern object and return it. |
protected static void |
readSampleData(Instrument instrument,
java.io.DataInput dataInput)
Read the number of bytes specified by the Instrument's sampleLength field into the Instrument's data array, and zero the first 2 samples, as ProTracker is supposed to do (According to Lars Hamre's modspec.txt) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModuleLoader()
Method Detail |
public static boolean identify(java.io.DataInput modStream) throws java.io.IOException
java.io.IOException
public static Module read(java.io.DataInput dataInput) throws java.io.IOException, java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException
protected static ModuleLoader.ModFormatInfo getFormatInfo(java.lang.String id) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected static Sequence.Pattern readPattern(java.io.DataInput dataInput, int numChannels) throws java.io.IOException
java.io.IOException
protected static Instrument readInstrument(java.io.DataInput dataInput) throws java.io.IOException
java.io.IOException
protected static void readSampleData(Instrument instrument, java.io.DataInput dataInput) throws java.io.IOException
java.io.IOException
protected static byte nibbleDecimal2Bin(byte decValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |