Package com.jme3.audio.android
Class AndroidAudioData
java.lang.Object
com.jme3.util.NativeObject
com.jme3.audio.AudioData
com.jme3.audio.android.AndroidAudioData
- All Implemented Interfaces:
 Cloneable
- 
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.audio.AudioData
AudioData.DataType - 
Field Summary
FieldsFields inherited from class com.jme3.audio.AudioData
bitsPerSample, channels, sampleRateFields inherited from class com.jme3.util.NativeObject
handleRef, id, INVALID_ID, objectManager, OBJTYPE_AUDIOBUFFER, OBJTYPE_AUDIOSTREAM, OBJTYPE_BO, OBJTYPE_FILTER, OBJTYPE_FRAMEBUFFER, OBJTYPE_SHADER, OBJTYPE_SHADERSOURCE, OBJTYPE_TEXTURE, OBJTYPE_VERTEXBUFFER, updateNeeded - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionCreates a shallow clone of this GL Object.voiddeleteObject(Object rendererObject) Deletes the GL object from the GPU when it is no longer used.AssetKey<?>floatfloatlongReturns a unique ID for this NativeObject.voidCalled when the GL context is restarted to reset all IDs.voidsetAssetKey(AssetKey<?> assetKey) voidsetCurrentVolume(float currentVolume) Methods inherited from class com.jme3.audio.AudioData
getBitsPerSample, getChannels, getSampleRate, setupFormatMethods inherited from class com.jme3.util.NativeObject
clearUpdateNeeded, clone, deleteNativeBuffers, dispose, getId, getWeakRef, isUpdateNeeded, setId, setUpdateNeeded, toString 
- 
Field Details
- 
assetKey
 - 
currentVolume
protected float currentVolume 
 - 
 - 
Constructor Details
- 
AndroidAudioData
public AndroidAudioData() - 
AndroidAudioData
protected AndroidAudioData(int id)  
 - 
 - 
Method Details
- 
getAssetKey
 - 
setAssetKey
 - 
getDataType
- Specified by:
 getDataTypein classAudioData- Returns:
 - The data type, either 
BufferorStream. 
 - 
getDuration
public float getDuration()- Specified by:
 getDurationin classAudioData- Returns:
 - the duration in seconds of the audio clip.
 
 - 
resetObject
public void resetObject()Description copied from class:NativeObjectCalled when the GL context is restarted to reset all IDs. Prevents "white textures" on display restart.- Specified by:
 resetObjectin classNativeObject
 - 
deleteObject
Description copied from class:NativeObjectDeletes the GL object from the GPU when it is no longer used. Called automatically by the GL object manager.- Specified by:
 deleteObjectin classNativeObject- Parameters:
 rendererObject- The renderer to be used to delete the object
 - 
getCurrentVolume
public float getCurrentVolume() - 
setCurrentVolume
public void setCurrentVolume(float currentVolume)  - 
createDestructableClone
Description copied from class:NativeObjectCreates a shallow clone of this GL Object. The deleteObject method should be functional for this object.- Specified by:
 createDestructableClonein classNativeObject- Returns:
 - a new instance
 
 - 
getUniqueId
public long getUniqueId()Description copied from class:NativeObjectReturns a unique ID for this NativeObject. No other NativeObject shall have the same ID.- Specified by:
 getUniqueIdin classNativeObject- Returns:
 - unique ID for this NativeObject.
 
 
 -