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.
 
メソッドの概要
 boolean isStream()
           
 void read(JmeImporter im)
           
 boolean shouldCache()
           
 java.lang.String toString()
           
 boolean useStreamCache()
          Specifies if the stream cache is used.
 void write(JmeExporter ex)
           
 
クラス com.jme3.asset.AssetKey から継承されたメソッド
createClonedInstance, equals, getExtension, getFolder, getName, hashCode, postProcess, reducePath, useSmartCache
 
クラス 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 asset
stream - 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 asset
stream - 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