public class AndroidAudioData extends AudioData
AudioData.DataType
Modifier and Type | Field and Description |
---|---|
protected AssetKey<?> |
assetKey |
protected float |
currentVolume |
bitsPerSample, channels, sampleRate
handleRef, id, INVALID_ID, objectManager, OBJTYPE_AUDIOBUFFER, OBJTYPE_AUDIOSTREAM, OBJTYPE_BO, OBJTYPE_FILTER, OBJTYPE_FRAMEBUFFER, OBJTYPE_SHADER, OBJTYPE_SHADERSOURCE, OBJTYPE_TEXTURE, OBJTYPE_VERTEXBUFFER, updateNeeded
Modifier | Constructor and Description |
---|---|
|
AndroidAudioData() |
protected |
AndroidAudioData(int id) |
Modifier and Type | Method and Description |
---|---|
NativeObject |
createDestructableClone()
Creates a shallow clone of this GL Object.
|
void |
deleteObject(java.lang.Object rendererObject)
Deletes the GL object from the GPU when it is no longer used.
|
AssetKey<?> |
getAssetKey() |
float |
getCurrentVolume() |
AudioData.DataType |
getDataType() |
float |
getDuration() |
long |
getUniqueId()
Returns a unique ID for this NativeObject.
|
void |
resetObject()
Called when the GL context is restarted to reset all IDs.
|
void |
setAssetKey(AssetKey<?> assetKey) |
void |
setCurrentVolume(float currentVolume) |
getBitsPerSample, getChannels, getSampleRate, setupFormat
clearUpdateNeeded, clone, deleteNativeBuffers, dispose, getId, isUpdateNeeded, setId, setUpdateNeeded, toString
protected AssetKey<?> assetKey
protected float currentVolume
public AndroidAudioData()
protected AndroidAudioData(int id)
public AssetKey<?> getAssetKey()
public void setAssetKey(AssetKey<?> assetKey)
public AudioData.DataType getDataType()
getDataType
in class AudioData
Buffer
or Stream
.public float getDuration()
getDuration
in class AudioData
public void resetObject()
NativeObject
resetObject
in class NativeObject
public void deleteObject(java.lang.Object rendererObject)
NativeObject
deleteObject
in class NativeObject
rendererObject
- The renderer to be used to delete the objectpublic float getCurrentVolume()
public void setCurrentVolume(float currentVolume)
public NativeObject createDestructableClone()
NativeObject
createDestructableClone
in class NativeObject
public long getUniqueId()
NativeObject
getUniqueId
in class NativeObject