|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzombie.openal.AudioImpl
zombie.openal.StreamSound
public class StreamSound
A sound implementation wrapped round a player which reads (and potentially) rereads a stream. This supplies streaming audio
| Field Summary |
|---|
| Fields inherited from class zombie.openal.AudioImpl |
|---|
volDelta |
| Constructor Summary | |
|---|---|
StreamSound(OpenALStreamPlayer player)
Create a new sound wrapped round a stream |
|
| Method Summary | |
|---|---|
float |
getPosition()
Return the current playing position in the sound |
boolean |
isPlaying()
Check if the sound is playing as sound fx |
int |
playAsMusic(float pitch,
float gain,
boolean loop)
Play this sound as music |
int |
playAsSoundEffect(float pitch,
float gain,
boolean loop)
Play this sound as a sound effect |
int |
playAsSoundEffect(float pitch,
float gain,
boolean loop,
float x,
float y,
float z)
|
boolean |
setPosition(float position)
Seeks to a position in the music. |
void |
stop()
Stop the sound effect |
| Methods inherited from class zombie.openal.AudioImpl |
|---|
getBufferID, getRange, initAudioImpl, pauseMusic, playAsSoundEffect, playAsSoundEffectUnbuffered, restartMusic, setID, setPosition, setRange, setVolume |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamSound(OpenALStreamPlayer player)
player - The stream player we'll use to access the stream| Method Detail |
|---|
public float getPosition()
Audio
getPosition in interface AudiogetPosition in class AudioImplorg.newdawn.slick.openal.AudioImpl#getPosition()public boolean isPlaying()
Audio
isPlaying in interface AudioisPlaying in class AudioImplorg.newdawn.slick.openal.AudioImpl#isPlaying()
public int playAsMusic(float pitch,
float gain,
boolean loop)
Audio
playAsMusic in interface AudioplayAsMusic in class AudioImplpitch - The pitch of the play backgain - The gain of the play backloop - True if we should loop
org.newdawn.slick.openal.AudioImpl#playAsMusic(float, float, boolean)
public int playAsSoundEffect(float pitch,
float gain,
boolean loop)
Audio
playAsSoundEffect in interface AudioplayAsSoundEffect in class AudioImplpitch - The pitch of the play backgain - The gain of the play backloop - True if we should loop
org.newdawn.slick.openal.AudioImpl#playAsSoundEffect(float, float, boolean)
public int playAsSoundEffect(float pitch,
float gain,
boolean loop,
float x,
float y,
float z)
org.newdawn.slick.openal.AudioImpl#playAsSoundEffect(float, float, boolean, float, float, float)public boolean setPosition(float position)
Audio
setPosition in interface AudiosetPosition in class AudioImplposition - Position in seconds.
org.newdawn.slick.openal.AudioImpl#setPosition(float)public void stop()
Audio
stop in interface Audiostop in class AudioImplorg.newdawn.slick.openal.AudioImpl#stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||