danger.audio
Interface Playable

All Known Implementing Classes:
BufferedStream, Sequence, Sound, Stream, Tone

Deprecated. This class is obsolete, and will be removed in a future release. Use PlayableMedia and PlayableAudio instead.


public interface Playable

Playable class.


Method Summary
 void destroy()
          Deprecated. will free memory associated with this object
 int getLoops()
          Deprecated. - use PlayableMedia.getLoopCount() instead.
 int getMicrosecondLength()
          Deprecated.  
 int getMicrosecondPosition()
          Deprecated.  
 int getUniqueID()
          Deprecated. return runtime ID.
 int getVolume()
          Deprecated. Returns current volume in percent.
 boolean isDone()
          Deprecated. Returns true if object is finished playing.
 boolean isLoaded()
          Deprecated. Returns true if object is loaded and ready to be played
 boolean isPaused()
          Deprecated. Returns true if paused
 void pause()
          Deprecated. Will pause object
 void resume()
          Deprecated. Will resume object if paused.
 void setLoops(int loops)
          Deprecated. - use PlayableMedia.setLoopCount(int) instead.
 void setMicrosecondPosition(int ticks)
          Deprecated.  
 void setVolume(int volume)
          Deprecated. Will set the current volume.
 boolean startDefault()
          Deprecated. Start object with defaults Returns true if started
 boolean startWithFilter(int filter)
          Deprecated. Start object with a filter Returns true if started
 void stop()
          Deprecated. Will stop the object and reset to begining
 

Method Detail

destroy

void destroy()
Deprecated. 
will free memory associated with this object


getMicrosecondLength

int getMicrosecondLength()
Deprecated. 

get ticks in microseconds of length of object


setMicrosecondPosition

void setMicrosecondPosition(int ticks)
Deprecated. 

set the current playback position of object in microseconds. Must call after starting object.


getMicrosecondPosition

int getMicrosecondPosition()
Deprecated. 

get the current playback position of a object in microseconds


isDone

boolean isDone()
Deprecated. 
Returns true if object is finished playing.


isLoaded

boolean isLoaded()
Deprecated. 
Returns true if object is loaded and ready to be played

Since:
2.3

startDefault

boolean startDefault()
Deprecated. 
Start object with defaults Returns true if started

Since:
2.3

startWithFilter

boolean startWithFilter(int filter)
Deprecated. 
Start object with a filter Returns true if started

Since:
2.3

stop

void stop()
Deprecated. 
Will stop the object and reset to begining


setVolume

void setVolume(int volume)
Deprecated. 
Will set the current volume. The value 100 is 100% of normal, 200 is double volume, 50 is half volume, etc.


getVolume

int getVolume()
Deprecated. 
Returns current volume in percent. The value 100 is 100% of normal.


isPaused

boolean isPaused()
Deprecated. 
Returns true if paused


pause

void pause()
Deprecated. 
Will pause object


resume

void resume()
Deprecated. 
Will resume object if paused. Does nothing if already resumed


getUniqueID

int getUniqueID()
Deprecated. 
return runtime ID. Unique every time object is started


setLoops

void setLoops(int loops)
Deprecated. - use PlayableMedia.setLoopCount(int) instead.


getLoops

int getLoops()
Deprecated. - use PlayableMedia.getLoopCount() instead.