Package org.freedesktop.gstreamer.audio
Class AudioLevelMeta
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.audio.AudioLevelMeta
- All Implemented Interfaces:
Proxy
Meta containing Audio Level Indication: https://tools.ietf.org/html/rfc6464
- Since:
- 1.20
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MetaInfogetInfo()Return theGstMetaInfoassociated withGstAudioLevelMeta.static MemoryLayoutThe memory layout of the native struct.byteRead the value of the fieldlevel.@Nullable MetareadMeta()Read the value of the fieldmeta.booleanRead the value of the fieldvoice_activity.voidwriteLevel(byte level) Write a value in the fieldlevel.voidWrite a value in the fieldmeta.voidwriteVoiceActivity(boolean voiceActivity) Write a value in the fieldvoice_activity.Methods inherited from class org.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 fieldmetalevel- value for the fieldlevelvoiceActivity- value for the fieldvoiceActivityarena- 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 fieldmetalevel- value for the fieldlevelvoiceActivity- value for the fieldvoiceActivity
-
-
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
-
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 theGstMetaInfoassociated withGstAudioLevelMeta.- Returns:
- a
GstMetaInfo - Since:
- 1.20
-