| Constructor and Description | 
|---|
Player()
Instantiate a new Player. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Module | 
load_module(InputStream input)
Decode the data in the specified InputStream into a Module instance. 
 | 
static void | 
main(String[] args)
Simple command-line test player. 
 | 
void | 
play()
Open the audio device and begin playback. 
 | 
void | 
set_loop(boolean loop)
If loop is true, playback will continue indefinitely,
                otherwise the module will play through once and stop. 
 | 
void | 
set_module(Module m)
Set the Module instance to be played. 
 | 
void | 
stop()
Stop playback and close the audio device. 
 | 
public Player() throws LineUnavailableException
LineUnavailableExceptionpublic static void main(String[] args) throws Exception
Exceptionpublic static Module load_module(InputStream input) throws IllegalArgumentException, IOException
input - an InputStream containing the module file to be decoded.IllegalArgumentException - if the data is not recognised as a module file.IOExceptionpublic void set_module(Module m)
public void set_loop(boolean loop)
public void play()
public void stop()