Package org.freedesktop.gstreamer.audio
Class AudioMeta
java.lang.Object
io.github.jwharm.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.-
Constructor Summary
ConstructorDescriptionAllocate 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 MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.readInfo()
Read the value of the fieldinfo
.readMeta()
Read the value of the fieldmeta
.Read the value of the fieldoffsets
.long[]
Read the value of the fieldpriv_offsets_arr
.long
Read the value of the fieldsamples
.void
Write a value in the fieldinfo
.void
Write a value in the fieldmeta
.void
writeOffsets
(MemorySegment offsets) Write a value in the fieldoffsets
.void
writePrivOffsetsArr
(long[] privOffsetsArr, Arena _arena) Write a value in the fieldpriv_offsets_arr
.void
writeSamples
(long samples) Write a value in the fieldsamples
.Methods inherited from class io.github.jwharm.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 fieldmeta
info
- value for the fieldinfo
samples
- value for the fieldsamples
offsets
- value for the fieldoffsets
privOffsetsArr
- value for the fieldprivOffsetsArr
arena
- 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 fieldmeta
info
- value for the fieldinfo
samples
- value for the fieldsamples
offsets
- value for the fieldoffsets
privOffsetsArr
- value for the fieldprivOffsetsArr
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMeta
-
writeMeta
Write a value in the fieldmeta
.- Parameters:
meta
- The new value for the fieldmeta
-
readInfo
-
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 long[] readPrivOffsetsArr()Read the value of the fieldpriv_offsets_arr
.- Returns:
- The value of the field
priv_offsets_arr
-
writePrivOffsetsArr
Write a value in the fieldpriv_offsets_arr
.- Parameters:
privOffsetsArr
- The new value for the fieldpriv_offsets_arr
_arena
- to control the memory allocation scope
-
getInfo
-