public abstract class Module extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
songFlags |
| Modifier | Constructor and Description |
|---|---|
|
Module()
Constructor for Module
|
protected |
Module(String fileName)
Constructor for Module
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocArrangement(int length) |
abstract boolean |
checkLoadingPossible(ModfileInputStream inputStream)
Returns true if the loader thinks this mod can be loaded by him
|
void |
cleanUpArrangement()
Automatically cleans up the arrangement data (if illegal pattnums
are in there...)
|
abstract boolean |
doFastSlides()
For s3m this is neccessary!
|
int[] |
getArrangement() |
int |
getBaseVolume() |
int |
getBPMSpeed() |
abstract int |
getChannelVolume(int channel)
Give the channel volume for this channel. 0->64
|
abstract String[] |
getFileExtensionList()
Retrieve the file extension list this loader/player is used for
|
String |
getFileName() |
abstract int |
getFrequencyTable()
Return 0: Amiga Mod Frequencytable (like mod, s3m, nst, wow...)
|
InstrumentsContainer |
getInstrumentContainer() |
String |
getModID() |
abstract BasicModMixer |
getModMixer(int sampleRate,
int doISP,
int doNoLoops) |
int |
getModType() |
int |
getNChannels() |
protected abstract Module |
getNewInstance(String fileName)
Create an Instance of your own - is used by loadModFile before loadModFileInternal is called
|
int |
getNInstruments() |
int |
getNPattern() |
int |
getNSamples() |
abstract int |
getPanningValue(int channel)
Give panning value 0..256 (128 is center)
|
PatternContainer |
getPatternContainer() |
int |
getSongFlags() |
int |
getSongLength() |
String |
getSongName() |
int |
getTempo() |
String |
getTrackerName() |
boolean |
isArrangementPositionPlayed(int position) |
Module |
loadModFile(File file)
Loads a Module.
|
Module |
loadModFile(ModfileInputStream inputStream) |
Module |
loadModFile(String fileName)
Loads a Module.
|
Module |
loadModFile(URL url) |
protected abstract void |
loadModFileInternal(ModfileInputStream inputStream) |
protected void |
readSampleData(Sample current,
int flags,
ModfileInputStream inputStream)
Loads samples
|
void |
resetLoopRecognition() |
void |
setArrangement(int[] arrangement) |
void |
setArrangementPositionPlayed(int position) |
protected void |
setBaseVolume(int baseVolume) |
protected void |
setBPMSpeed(int speed) |
protected void |
setInstrumentContainer(InstrumentsContainer instrumentContainer) |
protected void |
setModID(String modID) |
protected void |
setModType(int modType) |
protected void |
setNChannels(int channels) |
protected void |
setNInstruments(int instruments) |
protected void |
setNPattern(int pattern) |
protected void |
setNSamples(int samples) |
protected void |
setPatternContainer(PatternContainer patternContainer) |
protected void |
setSongFlags(int songFlags) |
protected void |
setSongLength(int songLength) |
protected void |
setSongName(String songName) |
protected void |
setTempo(int tempo) |
protected void |
setTrackerName(String trackerName) |
String |
toShortInfoString() |
String |
toString() |
public Module()
protected Module(String fileName)
public Module loadModFile(String fileName) throws IOException
fileName - IOExceptionpublic Module loadModFile(File file) throws IOException
file - IOExceptionpublic Module loadModFile(URL url) throws IOException
url - IOExceptionpublic Module loadModFile(ModfileInputStream inputStream) throws IOException
inputStream - IOExceptionpublic abstract boolean checkLoadingPossible(ModfileInputStream inputStream) throws IOException
inputStream - IOExceptionprotected abstract Module getNewInstance(String fileName)
protected abstract void loadModFileInternal(ModfileInputStream inputStream) throws IOException
inputStream - IOExceptionpublic abstract BasicModMixer getModMixer(int sampleRate, int doISP, int doNoLoops)
public abstract String[] getFileExtensionList()
public abstract int getPanningValue(int channel)
channel - public abstract int getChannelVolume(int channel)
channel - public abstract int getFrequencyTable()
public abstract boolean doFastSlides()
public String toShortInfoString()
public String toString()
toString in class ObjectObject.toString()protected void allocArrangement(int length)
public int[] getArrangement()
public void setArrangement(int[] arrangement)
arrangement - The arrangement to set.public void cleanUpArrangement()
public void resetLoopRecognition()
public boolean isArrangementPositionPlayed(int position)
public void setArrangementPositionPlayed(int position)
public int getBPMSpeed()
protected void setBPMSpeed(int speed)
speed - The bPMSpeed to set.public InstrumentsContainer getInstrumentContainer()
protected void setInstrumentContainer(InstrumentsContainer instrumentContainer)
instruments - The instruments to set.public int getNChannels()
protected void setNChannels(int channels)
channels - The nChannels to set.public int getNPattern()
protected void setNPattern(int pattern)
pattern - The nPattern to set.public int getNInstruments()
protected void setNInstruments(int instruments)
samples - The nInstruments to set.public int getNSamples()
protected void setNSamples(int samples)
samples - The nSamples to set.public int getSongLength()
protected void setSongLength(int songLength)
songLength - The songLength to set.public String getSongName()
protected void setSongName(String songName)
songName - The songName to set.public int getTempo()
protected void setTempo(int tempo)
tempo - The tempo to set.public String getTrackerName()
protected void setTrackerName(String trackerName)
trackerName - The trackerName to set.public PatternContainer getPatternContainer()
protected void setPatternContainer(PatternContainer patternContainer)
patternContainer - The patternContainer to set.public String getFileName()
public String getModID()
protected void setModID(String modID)
modID - The modID to set.public int getBaseVolume()
protected void setBaseVolume(int baseVolume)
baseVolume - The baseVolume to set.public int getSongFlags()
protected void setSongFlags(int songFlags)
songFlags - the songFlags to setpublic int getModType()
protected void setModType(int modType)
modType - The modType to set.protected void readSampleData(Sample current, int flags, ModfileInputStream inputStream) throws IOException
current - flags - input - offset - IOExceptionCopyright © 2014. All rights reserved.