|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcrayolon.portamod.Player
public class Player
| Nested Class Summary | |
|---|---|
class |
Player.Driver
|
| Field Summary | |
|---|---|
javax.sound.sampled.AudioFormat |
af
|
IBXM |
ibxm
|
boolean |
loop
|
Module |
module
|
byte[] |
output_buffer
|
javax.sound.sampled.SourceDataLine |
output_line
|
int |
play_position
|
int |
rate
|
int |
receivedbuffersize
|
boolean |
running
|
int |
song_duration
|
javax.sound.sampled.SourceDataLine |
source
|
| Constructor Summary | |
|---|---|
Player(int interp)
Instantiate a new Player. |
|
| Method Summary | |
|---|---|
int |
get_bpm()
|
int |
get_num_channels()
|
int |
get_num_instruments()
|
int |
get_seek_return()
syphus' edit - return updated position after seek |
int |
get_sequence_length()
|
java.lang.String |
get_title()
|
java.lang.String[] |
infotext()
|
java.lang.String |
ins_name(int ins_num)
|
static Module |
load_module(java.io.InputStream input)
Decode the data in the specified InputStream into a Module instance. |
void |
play()
Open the audio device and begin playback. |
void |
receivebuffer(int buffersize)
Syphus' edit - pass a custom buffersize to the class |
void |
seek(int s)
syphus' edit - user seek! |
void |
set_global_volume(int vol)
syphus' edit - global volume! (out of 64) |
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 |
set_sequence(int sequence_index,
int pattern_index)
|
void |
set_speed(int speed)
|
void |
set_tempo(int bpm)
|
void |
stop()
Stop playback and close the audio device. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public IBXM ibxm
public Module module
public int song_duration
public int play_position
public boolean running
public boolean loop
public byte[] output_buffer
public javax.sound.sampled.SourceDataLine output_line
public javax.sound.sampled.SourceDataLine source
public int receivedbuffersize
public int rate
public javax.sound.sampled.AudioFormat af
| Constructor Detail |
|---|
public Player(int interp)
throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableException| Method Detail |
|---|
public static Module load_module(java.io.InputStream input)
throws java.lang.IllegalArgumentException,
java.io.IOException
input - an InputStream containing the module file to be decoded.
java.lang.IllegalArgumentException - if the data is not recognised as a module file.
java.io.IOExceptionpublic void set_module(Module m)
public void seek(int s)
public int get_seek_return()
public int get_bpm()
public void set_global_volume(int vol)
public void set_speed(int speed)
public void set_tempo(int bpm)
public int get_num_channels()
public int get_sequence_length()
public void set_sequence(int sequence_index,
int pattern_index)
public java.lang.String get_title()
public int get_num_instruments()
public java.lang.String[] infotext()
public java.lang.String ins_name(int ins_num)
public void set_loop(boolean loop)
public void receivebuffer(int buffersize)
public void play()
public void stop()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||