Package org.freedesktop.gstreamer.audio
Class AudioRingBufferSpec
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.audio.AudioRingBufferSpec
- All Implemented Interfaces:
Proxy
The structure containing the format specification of the ringbuffer.
When type is GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DSD, the dsdFormat
is valid (otherwise it is unused). Also, when DSD is the sample type,
only the rate, channels, position, and bpf fields in info are populated.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new AudioRingBufferSpec.AudioRingBufferSpec(Arena arena) Allocate a new AudioRingBufferSpec.AudioRingBufferSpec(MemorySegment address) Create a AudioRingBufferSpec proxy instance for the provided memory address.AudioRingBufferSpec(Caps caps, AudioRingBufferFormatType type, AudioInfo info, long latencyTime, long bufferTime, int segsize, int segtotal, int seglatency) Allocate a new AudioRingBufferSpec with the fields set to the provided values.AudioRingBufferSpec(Caps caps, AudioRingBufferFormatType type, AudioInfo info, long latencyTime, long bufferTime, int segsize, int segtotal, int seglatency, Arena arena) Allocate a new AudioRingBufferSpec with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.longRead the value of the fieldbuffer_time.readCaps()Read the value of the fieldcaps.@Nullable AudioInforeadInfo()Read the value of the fieldinfo.longRead the value of the fieldlatency_time.intRead the value of the fieldseglatency.intRead the value of the fieldsegsize.intRead the value of the fieldsegtotal.readType()Read the value of the fieldtype.voidwriteBufferTime(long bufferTime) Write a value in the fieldbuffer_time.voidWrite a value in the fieldcaps.voidWrite a value in the fieldinfo.voidwriteLatencyTime(long latencyTime) Write a value in the fieldlatency_time.voidwriteSeglatency(int seglatency) Write a value in the fieldseglatency.voidwriteSegsize(int segsize) Write a value in the fieldsegsize.voidwriteSegtotal(int segtotal) Write a value in the fieldsegtotal.voidWrite a value in the fieldtype.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AudioRingBufferSpec
Create a AudioRingBufferSpec proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
AudioRingBufferSpec
Allocate a new AudioRingBufferSpec.- Parameters:
arena- to control the memory allocation scope
-
AudioRingBufferSpec
public AudioRingBufferSpec()Allocate a new AudioRingBufferSpec. The memory is allocated withArena.ofAuto(). -
AudioRingBufferSpec
public AudioRingBufferSpec(Caps caps, AudioRingBufferFormatType type, AudioInfo info, long latencyTime, long bufferTime, int segsize, int segtotal, int seglatency, Arena arena) Allocate a new AudioRingBufferSpec with the fields set to the provided values.- Parameters:
caps- value for the fieldcapstype- value for the fieldtypeinfo- value for the fieldinfolatencyTime- value for the fieldlatencyTimebufferTime- value for the fieldbufferTimesegsize- value for the fieldsegsizesegtotal- value for the fieldsegtotalseglatency- value for the fieldseglatencyarena- to control the memory allocation scope
-
AudioRingBufferSpec
public AudioRingBufferSpec(Caps caps, AudioRingBufferFormatType type, AudioInfo info, long latencyTime, long bufferTime, int segsize, int segtotal, int seglatency) Allocate a new AudioRingBufferSpec with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
caps- value for the fieldcapstype- value for the fieldtypeinfo- value for the fieldinfolatencyTime- value for the fieldlatencyTimebufferTime- value for the fieldbufferTimesegsize- value for the fieldsegsizesegtotal- value for the fieldsegtotalseglatency- value for the fieldseglatency
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readCaps
-
writeCaps
Write a value in the fieldcaps.- Parameters:
caps- The new value for the fieldcaps
-
readType
Read the value of the fieldtype.- Returns:
- The value of the field
type
-
writeType
Write a value in the fieldtype.- Parameters:
type- The new value for the fieldtype
-
readInfo
Read the value of the fieldinfo.- Returns:
- The value of the field
info
-
writeInfo
Write a value in the fieldinfo.- Parameters:
info- The new value for the fieldinfo
-
readLatencyTime
public long readLatencyTime()Read the value of the fieldlatency_time.- Returns:
- The value of the field
latency_time
-
writeLatencyTime
public void writeLatencyTime(long latencyTime) Write a value in the fieldlatency_time.- Parameters:
latencyTime- The new value for the fieldlatency_time
-
readBufferTime
public long readBufferTime()Read the value of the fieldbuffer_time.- Returns:
- The value of the field
buffer_time
-
writeBufferTime
public void writeBufferTime(long bufferTime) Write a value in the fieldbuffer_time.- Parameters:
bufferTime- The new value for the fieldbuffer_time
-
readSegsize
public int readSegsize()Read the value of the fieldsegsize.- Returns:
- The value of the field
segsize
-
writeSegsize
public void writeSegsize(int segsize) Write a value in the fieldsegsize.- Parameters:
segsize- The new value for the fieldsegsize
-
readSegtotal
public int readSegtotal()Read the value of the fieldsegtotal.- Returns:
- The value of the field
segtotal
-
writeSegtotal
public void writeSegtotal(int segtotal) Write a value in the fieldsegtotal.- Parameters:
segtotal- The new value for the fieldsegtotal
-
readSeglatency
public int readSeglatency()Read the value of the fieldseglatency.- Returns:
- The value of the field
seglatency
-
writeSeglatency
public void writeSeglatency(int seglatency) Write a value in the fieldseglatency.- Parameters:
seglatency- The new value for the fieldseglatency
-