|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loaders.sound.SoundLoader
public abstract class SoundLoader
This is a base for other SoundLoader implementations for different formats.
| Constructor Summary | |
|---|---|
SoundLoader()
|
|
| Method Summary | |
|---|---|
static SoundLoader |
getInstance()
|
BackgroundSound |
loadBackgroundSound(java.io.InputStream in,
float gain)
This method loads a BackgroundSound from an InputStream. |
BackgroundSound |
loadBackgroundSound(java.lang.String filename,
float gain)
This method loads a BackgroundSound from a file. |
BackgroundSound |
loadBackgroundSound(java.net.URL url,
float gain)
This method loads a BackgroundSound from a URL. |
PointSound |
loadPointSound(java.io.InputStream in,
float gain)
This method loads a PointSound from an InputStream. |
PointSound |
loadPointSound(java.lang.String filename,
float gain)
This method loads a PointSound from a file. |
PointSound |
loadPointSound(java.net.URL url,
float gain)
This method loads a PointSound from a URL. |
abstract SoundContainer |
loadSound(java.io.InputStream in)
This method loads the Sound from an InputStream. |
abstract SoundContainer |
loadSound(java.lang.String filename)
This method loads the Sound from a file. |
abstract SoundContainer |
loadSound(java.net.URL url)
This method loads the Sound from a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoundLoader()
| Method Detail |
|---|
public static SoundLoader getInstance()
public abstract SoundContainer loadSound(java.io.InputStream in)
throws java.io.IOException
in - the InputStream to load the Sound from. It isn't necessary
to explicitly pass an instance of BufferedInputStream, since it is created on demand.
java.io.IOException
public abstract SoundContainer loadSound(java.net.URL url)
throws java.io.IOException
url - the URL to load the Sound from.
java.io.IOException
public abstract SoundContainer loadSound(java.lang.String filename)
throws java.io.IOException
filename - the file's name to load the Sound from.
java.io.IOException
public PointSound loadPointSound(java.io.InputStream in,
float gain)
throws java.io.IOException
in - the InputStream to load the Sound from. It isn't necessary
to explicitly pass an instance of BufferedInputStream, since it is created on demand.
java.io.IOException
public PointSound loadPointSound(java.net.URL url,
float gain)
throws java.io.IOException
url - the URL to load the Sound from.
java.io.IOException
public PointSound loadPointSound(java.lang.String filename,
float gain)
throws java.io.IOException
filename - the file's name to load the Sound from.
java.io.IOException
public BackgroundSound loadBackgroundSound(java.io.InputStream in,
float gain)
throws java.io.IOException
in - the InputStream to load the Sound from. It isn't necessary
to explicitly pass an instance of BufferedInputStream, since it is created on demand.
java.io.IOException
public BackgroundSound loadBackgroundSound(java.net.URL url,
float gain)
throws java.io.IOException
url - the URL to load the Sound from.
java.io.IOException
public BackgroundSound loadBackgroundSound(java.lang.String filename,
float gain)
throws java.io.IOException
filename - the file's name to load the Sound from.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||