public final class StreamPlayer
extends java.lang.Object
Constructor and Description |
---|
StreamPlayer() |
Modifier and Type | Method and Description |
---|---|
void |
interrupt()
Interrupt the audioStream.
|
void |
playStream(java.io.InputStream stream)
Play the given InputStream.
|
void |
playStream(java.io.InputStream stream,
int sampleRate)
Play the given InputStream.
|
public void playStream(java.io.InputStream stream)
stream
- the stream derived from a PCM audio sourcepublic void playStream(java.io.InputStream stream, int sampleRate)
stream
- the stream derived from a PCM audio sourcesampleRate
- the sample rate for the provided streampublic void interrupt()