Constructor and Description |
---|
AudioKey() |
AudioKey(java.lang.String name) |
AudioKey(java.lang.String name,
boolean stream)
Create a new AudioKey
|
AudioKey(java.lang.String name,
boolean stream,
boolean streamCache)
Create a new AudioKey.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class<? extends AssetCache> |
getCacheType() |
java.lang.Class<? extends AssetProcessor> |
getProcessorType() |
int |
hashCode() |
boolean |
isStream() |
void |
read(JmeImporter im) |
java.lang.String |
toString() |
boolean |
useStreamCache()
Specifies if the stream cache is used.
|
void |
write(JmeExporter ex) |
clone, getExtension, getExtension, getFolder, getFolder, getName, reducePath
public AudioKey(java.lang.String name, boolean stream, boolean streamCache)
name
- Name of the assetstream
- If true, the audio will be streamed from harddrive,
otherwise it will be buffered entirely and then played.streamCache
- If stream is true, then this specifies if
the stream cache is used. When enabled, the audio stream will
be read entirely but not decoded, allowing features such as
seeking, determining duration and looping.public AudioKey(java.lang.String name, boolean stream)
name
- Name of the assetstream
- If true, the audio will be streamed from harddrive,
otherwise it will be buffered entirely and then played.public AudioKey(java.lang.String name)
public AudioKey()
public boolean isStream()
AudioStream
or
false if it should be a AudioBuffer
.public boolean useStreamCache()
public java.lang.Class<? extends AssetCache> getCacheType()
getCacheType
in class AssetKey<AudioData>
SimpleAssetCache
is returned.public java.lang.Class<? extends AssetProcessor> getProcessorType()
getProcessorType
in class AssetKey<AudioData>
public void write(JmeExporter ex) throws java.io.IOException