examples.cli
Class SimpleThreadedPlayer

java.lang.Object
  extended by 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).


Field Summary
static int BITS
           
static int BUFFERSIZE
           
static int CHANNELS
           
static boolean INTERPOLATE
           
static int RATE
           
 
Constructor Summary
SimpleThreadedPlayer()
           
 
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
 

Field Detail

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
Constructor Detail

SimpleThreadedPlayer

public SimpleThreadedPlayer()
Method Detail

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