com.jme3.audio
クラス AudioBuffer
java.lang.Object
com.jme3.audio.ALObject
com.jme3.audio.AudioData
com.jme3.audio.AudioBuffer
public class AudioBuffer
- extends AudioData
An AudioBuffer
is an implementation of AudioData
where the audio is buffered (stored in memory). All parts of it
are accessible at any time.
AudioBuffers are useful for short sounds, like effects, etc.
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AudioBuffer
public AudioBuffer()
getDataType
public AudioData.DataType getDataType()
- 定義:
- クラス
AudioData
内の getDataType
- 戻り値:
- The data type, either
Buffer
or Stream
.
getDuration
public float getDuration()
- 定義:
- クラス
AudioData
内の getDuration
- 戻り値:
- The duration of the audio in seconds. It is expected
that audio is uncompressed.
toString
public java.lang.String toString()
- オーバーライド:
- クラス
ALObject
内の toString
updateData
public void updateData(java.nio.ByteBuffer data)
- Update the data in the buffer with new data.
- パラメータ:
data
-
getData
public java.nio.ByteBuffer getData()
- 戻り値:
- The buffered audio data.
resetObject
public void resetObject()
- 定義:
- クラス
ALObject
内の resetObject
deleteObject
public void deleteObject(AudioRenderer ar)
- 定義:
- クラス
ALObject
内の deleteObject