Package org.freedesktop.gstreamer.audio
Class AudioLevelMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.audio.AudioLevelMeta
- All Implemented Interfaces:
Proxy
Meta containing Audio Level Indication: https://tools.ietf.org/html/rfc6464
-
Constructor Summary
ConstructorDescriptionAllocate a new AudioLevelMeta.AudioLevelMeta
(Arena arena) Allocate a new AudioLevelMeta.AudioLevelMeta
(MemorySegment address) Create a AudioLevelMeta proxy instance for the provided memory address.AudioLevelMeta
(Meta meta, byte level, boolean voiceActivity) Allocate a new AudioLevelMeta with the fields set to the provided values.AudioLevelMeta
(Meta meta, byte level, boolean voiceActivity, Arena arena) Allocate a new AudioLevelMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfo
getInfo()
Return theGstMetaInfo
associated withGstAudioLevelMeta
.static MemoryLayout
The memory layout of the native struct.byte
Read the value of the fieldlevel
.readMeta()
Read the value of the fieldmeta
.boolean
Read the value of the fieldvoice_activity
.void
writeLevel
(byte level) Write a value in the fieldlevel
.void
Write a value in the fieldmeta
.void
writeVoiceActivity
(boolean voiceActivity) Write a value in the fieldvoice_activity
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AudioLevelMeta
Create a AudioLevelMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AudioLevelMeta
Allocate a new AudioLevelMeta.- Parameters:
arena
- to control the memory allocation scope
-
AudioLevelMeta
public AudioLevelMeta()Allocate a new AudioLevelMeta. The memory is allocated withArena.ofAuto()
. -
AudioLevelMeta
Allocate a new AudioLevelMeta with the fields set to the provided values.- Parameters:
meta
- value for the fieldmeta
level
- value for the fieldlevel
voiceActivity
- value for the fieldvoiceActivity
arena
- to control the memory allocation scope
-
AudioLevelMeta
Allocate a new AudioLevelMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
meta
- value for the fieldmeta
level
- value for the fieldlevel
voiceActivity
- value for the fieldvoiceActivity
-
-
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
-
readLevel
public byte readLevel()Read the value of the fieldlevel
.- Returns:
- The value of the field
level
-
writeLevel
public void writeLevel(byte level) Write a value in the fieldlevel
.- Parameters:
level
- The new value for the fieldlevel
-
readVoiceActivity
public boolean readVoiceActivity()Read the value of the fieldvoice_activity
.- Returns:
- The value of the field
voice_activity
-
writeVoiceActivity
public void writeVoiceActivity(boolean voiceActivity) Write a value in the fieldvoice_activity
.- Parameters:
voiceActivity
- The new value for the fieldvoice_activity
-
getInfo
Return theGstMetaInfo
associated withGstAudioLevelMeta
.- Returns:
- a
GstMetaInfo
-