Package org.freedesktop.gstreamer.audio
Class AudioMeta
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.audio.AudioMeta
- All Implemented Interfaces:
Proxy
GstAudioDownmixMeta defines an audio downmix matrix to be send along with
audio buffers. These functions in this module help to create and attach the
meta as well as extracting it.- Since:
- 1.16
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new AudioMeta.Allocate a new AudioMeta.AudioMeta(MemorySegment address) Create a AudioMeta proxy instance for the provided memory address.AudioMeta(Meta meta, AudioInfo info, long samples, MemorySegment offsets, long[] privOffsetsArr) Allocate a new AudioMeta with the fields set to the provided values.AudioMeta(Meta meta, AudioInfo info, long samples, MemorySegment offsets, long[] privOffsetsArr, Arena arena) Allocate a new AudioMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfogetInfo()static MemoryLayoutThe memory layout of the native struct.@Nullable AudioInforeadInfo()Read the value of the fieldinfo.@Nullable MetareadMeta()Read the value of the fieldmeta.Read the value of the fieldoffsets.@org.jspecify.annotations.Nullable long @Nullable []Read the value of the fieldpriv_offsets_arr.longRead the value of the fieldsamples.voidWrite a value in the fieldinfo.voidWrite a value in the fieldmeta.voidwriteOffsets(MemorySegment offsets) Write a value in the fieldoffsets.voidwritePrivOffsetsArr(@org.jspecify.annotations.Nullable long @Nullable [] privOffsetsArr, Arena _arena) Write a value in the fieldpriv_offsets_arr.voidwriteSamples(long samples) Write a value in the fieldsamples.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AudioMeta
Create a AudioMeta proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
AudioMeta
Allocate a new AudioMeta.- Parameters:
arena- to control the memory allocation scope
-
AudioMeta
public AudioMeta()Allocate a new AudioMeta. The memory is allocated withArena.ofAuto(). -
AudioMeta
public AudioMeta(Meta meta, AudioInfo info, long samples, MemorySegment offsets, long[] privOffsetsArr, Arena arena) Allocate a new AudioMeta with the fields set to the provided values.- Parameters:
meta- value for the fieldmetainfo- value for the fieldinfosamples- value for the fieldsamplesoffsets- value for the fieldoffsetsprivOffsetsArr- value for the fieldprivOffsetsArrarena- to control the memory allocation scope
-
AudioMeta
public AudioMeta(Meta meta, AudioInfo info, long samples, MemorySegment offsets, long[] privOffsetsArr) Allocate a new AudioMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
meta- value for the fieldmetainfo- value for the fieldinfosamples- value for the fieldsamplesoffsets- value for the fieldoffsetsprivOffsetsArr- value for the fieldprivOffsetsArr
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMeta
Read the value of the fieldmeta.- Returns:
- The value of the field
meta
-
writeMeta
Write a value in the fieldmeta.- Parameters:
meta- The new value for the fieldmeta
-
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
-
readSamples
public long readSamples()Read the value of the fieldsamples.- Returns:
- The value of the field
samples
-
writeSamples
public void writeSamples(long samples) Write a value in the fieldsamples.- Parameters:
samples- The new value for the fieldsamples
-
readOffsets
Read the value of the fieldoffsets.- Returns:
- The value of the field
offsets
-
writeOffsets
Write a value in the fieldoffsets.- Parameters:
offsets- The new value for the fieldoffsets
-
readPrivOffsetsArr
public @org.jspecify.annotations.Nullable long @Nullable [] readPrivOffsetsArr()Read the value of the fieldpriv_offsets_arr.- Returns:
- The value of the field
priv_offsets_arr
-
writePrivOffsetsArr
public void writePrivOffsetsArr(@org.jspecify.annotations.Nullable long @Nullable [] privOffsetsArr, Arena _arena) Write a value in the fieldpriv_offsets_arr.- Parameters:
privOffsetsArr- The new value for the fieldpriv_offsets_arr
-
getInfo
-