|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectexamples.cli.SimplePlayer
public class SimplePlayer
This example demonstrates how a module player can be created in the least possible amount of code.
| Field Summary | |
|---|---|
static int |
BITS
use 16 bit playback |
static int |
BUFFERSIZE
use an output buffer with space for half a second of audio data. |
static int |
CHANNELS
play in stereo |
static boolean |
INTERPOLATE
use interpolated mixing |
static int |
RATE
use a playback rate of 44100 samples per second |
| Constructor Summary | |
|---|---|
SimplePlayer()
|
|
| 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 |
|---|
public static final int BITS
public static final int RATE
public static final int CHANNELS
public static final boolean INTERPOLATE
public static final int BUFFERSIZE
| Constructor Detail |
|---|
public SimplePlayer()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||