public class AudioPlayer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) long |
currentChunk
The current chunk.
|
(package private) javax.sound.sampled.SourceDataLine |
line
The line.
|
(package private) long |
playedChunk
The played chunk.
|
(package private) java.util.Queue<byte[]> |
queue
The queue.
|
| Constructor and Description |
|---|
AudioPlayer()
Instantiates a new audio player.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initAudioDevice()
Inits the audio device.
|
void |
playChunk(double[] chunk)
Play chunk.
|
void |
stopAudioDevice()
Stop audio device.
|