|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzombie.openal.AudioImpl
zombie.openal.MODSound
public class MODSound
A sound as a MOD file - can only be played as music
Field Summary |
---|
Fields inherited from class zombie.openal.AudioImpl |
---|
volDelta |
Constructor Summary | |
---|---|
MODSound(SoundStore store,
java.io.InputStream in)
Create a mod sound to be played back |
Method Summary | |
---|---|
float |
getPosition()
Return the current playing position in the sound |
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 |
void |
poll()
Poll the streaming on the MOD |
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, isPlaying, 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 MODSound(SoundStore store, java.io.InputStream in) throws java.io.IOException
store
- The store this sound belongs toin
- The input stream to read the data from
java.io.IOException
- Indicates a failure to load a soundMethod Detail |
---|
public float getPosition()
Audio
getPosition
in interface Audio
getPosition
in class AudioImpl
org.newdawn.slick.openal.AudioImpl#getPosition()
public int playAsMusic(float pitch, float gain, boolean loop)
Audio
playAsMusic
in interface Audio
playAsMusic
in class AudioImpl
pitch
- 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 Audio
playAsSoundEffect
in class AudioImpl
pitch
- 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 void poll()
public boolean setPosition(float position)
Audio
setPosition
in interface Audio
setPosition
in class AudioImpl
position
- Position in seconds.
org.newdawn.slick.openal.AudioImpl#setPosition(float)
public void stop()
Audio
stop
in interface Audio
stop
in class AudioImpl
org.newdawn.slick.openal.AudioImpl#stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |