|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vwp.sound.mod.modplay.Player
com.vwp.sound.mod.modplay.ThreadedPlayer
public class ThreadedPlayer
a threaded player interface. You should probably not call it's play() method directly after starting the player thread. That is very likely to cause "issues"...
| Constructor Summary | |
|---|---|
ThreadedPlayer()
|
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getFailiureCause()
if an error occured while playing, use this to get the erro cause |
boolean |
hasFailed()
check if an error has occured while playing |
boolean |
isPaused()
check if the module is paused |
boolean |
isRunning()
check if the player thread is still running |
void |
pause(boolean pause)
pause the player thread |
void |
run()
|
void |
start()
start playing the module |
void |
stop()
stop playing the module and the player thread |
| Methods inherited from class com.vwp.sound.mod.modplay.Player |
|---|
close, getAmplification, getBalance, getDefaultAmplification, getDivision, getModule, getModuleState, getNote, getPosition, getSeparation, getTick, getVolume, init, load, load, load, mute, mute, play, setAmplification, setBalance, setPosition, setSeparation, setVolume |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadedPlayer()
| Method Detail |
|---|
public void run()
run in interface java.lang.RunnableRunnable.run()public void start()
public void stop()
public boolean isRunning()
public void pause(boolean pause)
pause - public boolean isPaused()
public boolean hasFailed()
public java.lang.Throwable getFailiureCause()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||