examples.cli
Class SimpleThreadedPlayer
java.lang.Object
examples.cli.SimpleThreadedPlayer
public class SimpleThreadedPlayer
- extends java.lang.Object
This example demonstrates how a module player can be created in the least possible amount of
code. This is very similar to the com.vwp.sound.mod.modplay.example.cli.SimplePlayer
(take a look
at that one first, it's better documented), but uses the asynchrounus version of the player
interface (ThreadedPlayer
).
Method Summary |
static void |
main(java.lang.String[] args)
main method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BITS
public static final int BITS
- See Also:
- Constant Field Values
RATE
public static final int RATE
- See Also:
- Constant Field Values
CHANNELS
public static final int CHANNELS
- See Also:
- Constant Field Values
INTERPOLATE
public static final boolean INTERPOLATE
- See Also:
- Constant Field Values
BUFFERSIZE
public static final int BUFFERSIZE
- See Also:
- Constant Field Values
SimpleThreadedPlayer
public SimpleThreadedPlayer()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- main method. The player is expecting to be invoked with one argument on the command line,
the filename of the module to play
- Parameters:
args
-
- Throws:
java.lang.Exception