public abstract class Player extends java.lang.Object implements AudioSendHandler
Modifier and Type | Field and Description |
---|---|
protected float |
amplitude |
protected org.tritonus.dsp.ais.AmplitudeAudioInputStream |
amplitudeAudioStream |
protected javax.sound.sampled.AudioFormat |
audioFormat |
protected javax.sound.sampled.AudioInputStream |
audioSource |
Constructor and Description |
---|
Player() |
Modifier and Type | Method and Description |
---|---|
boolean |
canProvide() |
abstract boolean |
isPaused() |
abstract boolean |
isPlaying() |
abstract boolean |
isStarted() |
abstract boolean |
isStopped() |
abstract void |
pause() |
abstract void |
play() |
byte[] |
provide20MsAudio() |
abstract void |
restart() |
void |
setAudioSource(javax.sound.sampled.AudioInputStream inSource) |
void |
setVolume(float volume) |
abstract void |
stop() |
protected javax.sound.sampled.AudioInputStream audioSource
protected javax.sound.sampled.AudioFormat audioFormat
protected org.tritonus.dsp.ais.AmplitudeAudioInputStream amplitudeAudioStream
protected float amplitude
public abstract void play()
public abstract void pause()
public abstract void stop()
public abstract void restart()
public abstract boolean isStarted()
public abstract boolean isPlaying()
public abstract boolean isPaused()
public abstract boolean isStopped()
public void setAudioSource(javax.sound.sampled.AudioInputStream inSource)
public void setVolume(float volume)
public boolean canProvide()
canProvide
in interface AudioSendHandler
public byte[] provide20MsAudio()
provide20MsAudio
in interface AudioSendHandler