com.jme.sound.openAL.objects
Class MusicStream
java.lang.Object
com.jme.sound.openAL.scene.Playable
com.jme.sound.openAL.objects.MusicStream
- public class MusicStream
- extends Playable
|
Constructor Summary |
MusicStream(java.lang.String file,
boolean memoryLoad)
|
| Methods inherited from class com.jme.sound.openAL.scene.Playable |
getFxChorusID, getFxCompressorID, getFxDistorsionID, getFxEchoID, getFxFlangerID, getFxGargleID, getFxI3DL2ReverbID, getFxMaxID, getFxParamEqID, getFxWavesReverbID, resetConfig, setFxChorusID, setFxCompressorID, setFxDistorsionID, setFxEchoID, setFxFlangerID, setFxGargleID, setFxI3DL2ReverbID, setFxMaxID, setFxParamEqID, setFxWavesReverbID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MusicStream
public MusicStream(java.lang.String file,
boolean memoryLoad)
setConfiguration
public void setConfiguration(Configuration conf)
play
public boolean play()
pause
public boolean pause()
- Pause the stream
- Returns:
- true if the stream is paused
stop
public void stop()
- Stops the stream handled by this Music stream
close
public void close()
isPlaying
public boolean isPlaying()
- Get the playing status of this stream
- Returns:
- true is the stream is playing
length
public int length()
getData
protected static java.nio.ByteBuffer getData(java.lang.String filename)
- Reads the file into a ByteBuffer
- Parameters:
filename - Name of file to load
- Returns:
- ByteBuffer containing file data
isOpened
public boolean isOpened()
loop
public void loop(boolean flag)
- Returns: