com.jme3.audio
クラス AudioKey
java.lang.Object
com.jme3.asset.AssetKey<AudioData>
com.jme3.audio.AudioKey
- すべての実装されたインタフェース:
- Savable
public class AudioKey
- extends AssetKey<AudioData>
AudioKey
is extending AssetKey by holding stream flag.
コンストラクタの概要 |
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. |
クラス java.lang.Object から継承されたメソッド |
getClass, notify, notifyAll, wait, wait, wait |
AudioKey
public AudioKey(java.lang.String name,
boolean stream,
boolean streamCache)
- Create a new AudioKey.
- パラメータ:
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.
AudioKey
public AudioKey(java.lang.String name,
boolean stream)
- Create a new AudioKey
- パラメータ:
name
- Name of the assetstream
- If true, the audio will be streamed from harddrive,
otherwise it will be buffered entirely and then played.
AudioKey
public AudioKey(java.lang.String name)
AudioKey
public AudioKey()
toString
public java.lang.String toString()
- オーバーライド:
- クラス
AssetKey<AudioData>
内の toString
isStream
public boolean isStream()
- 戻り値:
- True if the loaded audio should be a
AudioStream
or
false if it should be a AudioBuffer
.
useStreamCache
public boolean useStreamCache()
- Specifies if the stream cache is used.
When enabled, the audio stream will
be read entirely but not decoded, allowing features such as
seeking, looping and determining duration.
shouldCache
public boolean shouldCache()
- オーバーライド:
- クラス
AssetKey<AudioData>
内の shouldCache
- 戻り値:
- True if the asset for this key should be cached. Subclasses
should override this method if they want to override caching behavior.
write
public void write(JmeExporter ex)
throws java.io.IOException
- 定義:
- インタフェース
Savable
内の write
- オーバーライド:
- クラス
AssetKey<AudioData>
内の write
- 例外:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- 定義:
- インタフェース
Savable
内の read
- オーバーライド:
- クラス
AssetKey<AudioData>
内の read
- 例外:
java.io.IOException