Package com.jogamp.common.av
Class AudioSink.AudioDataFrame
- java.lang.Object
-
- com.jogamp.common.av.TimeFrameI
-
- com.jogamp.common.av.AudioSink.AudioFrame
-
- com.jogamp.common.av.AudioSink.AudioDataFrame
-
- Enclosing interface:
- AudioSink
public static class AudioSink.AudioDataFrame extends AudioSink.AudioFrame
Audio data frame example ofAudioSink.AudioFrame
with actual audio data being attached.
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBuffer
data
-
Fields inherited from class com.jogamp.common.av.AudioSink.AudioFrame
byteSize
-
Fields inherited from class com.jogamp.common.av.TimeFrameI
duration, END_OF_STREAM_PTS, INVALID_PTS, pts
-
-
Constructor Summary
Constructors Constructor Description AudioDataFrame(int pts, int duration, ByteBuffer bytes, int byteCount)
Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
getData()
Get this frame's data.String
toString()
-
Methods inherited from class com.jogamp.common.av.AudioSink.AudioFrame
getByteSize, setByteSize
-
Methods inherited from class com.jogamp.common.av.TimeFrameI
getDuration, getPTS, setDuration, setPTS
-
-
-
-
Field Detail
-
data
protected final ByteBuffer data
-
-
Constructor Detail
-
AudioDataFrame
public AudioDataFrame(int pts, int duration, ByteBuffer bytes, int byteCount)
Create a new instance- Parameters:
pts
- frame pts in millisecondsduration
- frame duration in millisecondsbytes
- audio databyteCount
- size in bytes
-
-
Method Detail
-
getData
public final ByteBuffer getData()
Get this frame's data.
-
toString
public String toString()
- Overrides:
toString
in classAudioSink.AudioFrame
-
-