com.jme.sound.fmod.objects
Class MusicStream

java.lang.Object
  extended bycom.jme.sound.fmod.scene.Playable
      extended bycom.jme.sound.fmod.objects.MusicStream

public class MusicStream
extends Playable


Field Summary
 
Fields inherited from class com.jme.sound.fmod.scene.Playable
configuration, configured, listener, playingChannel
 
Constructor Summary
MusicStream(java.lang.String file, boolean memoryLoad)
           
 
Method Summary
 void close()
           
protected static java.nio.ByteBuffer getData(java.lang.String filename)
          Reads the file into a ByteBuffer
 boolean isOpened()
           
 boolean isPlaying()
           
 int length()
           
 boolean pause()
          Pause the stream
 boolean play()
           
 void setConfiguration(Configuration conf)
           
 void stop()
           
 
Methods inherited from class com.jme.sound.fmod.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
 

Constructor Detail

MusicStream

public MusicStream(java.lang.String file,
                   boolean memoryLoad)
Method Detail

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()

close

public void close()

isPlaying

public boolean isPlaying()

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()