Package org.freedesktop.gstreamer.audio
Class AudioRingBufferSpec
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.long
Read the value of the fieldbuffer_time
.readCaps()
Read the value of the fieldcaps
.readInfo()
Read the value of the fieldinfo
.long
Read the value of the fieldlatency_time
.int
Read the value of the fieldseglatency
.int
Read the value of the fieldsegsize
.int
Read the value of the fieldsegtotal
.readType()
Read the value of the fieldtype
.void
writeBufferTime
(long bufferTime) Write a value in the fieldbuffer_time
.void
Write a value in the fieldcaps
.void
Write a value in the fieldinfo
.void
writeLatencyTime
(long latencyTime) Write a value in the fieldlatency_time
.void
writeSeglatency
(int seglatency) Write a value in the fieldseglatency
.void
writeSegsize
(int segsize) Write a value in the fieldsegsize
.void
writeSegtotal
(int segtotal) Write a value in the fieldsegtotal
.void
Write a value in the fieldtype
.Methods inherited from class io.github.jwharm.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 fieldcaps
type
- value for the fieldtype
info
- value for the fieldinfo
latencyTime
- value for the fieldlatencyTime
bufferTime
- value for the fieldbufferTime
segsize
- value for the fieldsegsize
segtotal
- value for the fieldsegtotal
seglatency
- value for the fieldseglatency
arena
- 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 fieldcaps
type
- value for the fieldtype
info
- value for the fieldinfo
latencyTime
- value for the fieldlatencyTime
bufferTime
- value for the fieldbufferTime
segsize
- value for the fieldsegsize
segtotal
- value for the fieldsegtotal
seglatency
- 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
-
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
-