public class WavPlayer
extends java.lang.Object
Constructor and Description |
---|
WavPlayer() |
Modifier and Type | Method and Description |
---|---|
void |
cancelPlay() |
boolean |
isPlaying() |
void |
playSound(ManagedAudioInputStream as,
WavPlayerListener listener)
Blocking method to Play the AudioStream and fire events if the listener
is not null
|
void |
playSoundWithLoops(ManagedAudioInputStream as,
WavPlayerListener listener,
LoopParameterProvider loopPProvider)
Play the sample using the loops
|
public void playSound(ManagedAudioInputStream as, WavPlayerListener listener) throws java.lang.Exception
as
- the audiostreamlistener
- listeners for the eventsjava.lang.Exception
public void playSoundWithLoops(ManagedAudioInputStream as, WavPlayerListener listener, LoopParameterProvider loopPProvider)
ais
- listener
- loopPProvider
- public void cancelPlay()
public boolean isPlaying()