(all methods are shared)
- Module Mod.load(path)
Load a module in RAM
path (String): path of the mod file (it can be all files used by mikmod library)
- Void Mod.destroy(module)
Destroy a module
module (Module): module to destroy
- Module Mod.getModule()
Get the played module
- Void Mod.play(module)
Play a module
module (Module): moldule to play
- Void Mod.stop()
Stop the player
- Void Mod.pauseResume()
Pause or resume the player
- Number Mod.isActive()
Is the player active. Return 1 if the player is active or 0 if not.
- Number Mod.isPaused()
Is the player paused. Return 1 if the player is paused or 0 if not.
- Void Mod.nextPosition()
Move the player to the next position of the played module
- Void Mod.previousPosition()
Move the player to the previous position of the played module
- Void Mod.setPosition(position)
Set the current position in the played module
position (Number): new position
- Void Mod.setVolume(volume)
Change the volume of the player
volume (Number): new volume between 0 and 128
- Void Mod.setSpeed(speed)
Change the speed of the player
speed (Number): new speed between 1 and 32
- Void Mod.setTempo(tempo)
Change the tempo of the player
tempo (Number): new tempo between 32 and 255
- Number Mod.time(module)
Get the elapsed time in milliseconds of a module
module (Module): module to use
- Number Mod.initTempo(module)
Get the initial tempo of a module
module (Module): module to use
- Number Mod.initSpeed(module)
Get the initial speed of a module
module (Module): module to use
- Number Mod.initVolume(module)
Get the initial volume of a module
module (Module): module to use