Package org.freedesktop.gstreamer.audio
Class AudioFormatInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.audio.AudioFormatInfo
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new AudioFormatInfo.AudioFormatInfo(Arena arena) Allocate a new AudioFormatInfo.AudioFormatInfo(MemorySegment address) Create a AudioFormatInfo proxy instance for the provided memory address.AudioFormatInfo(AudioFormat format, String name, String description, Set<AudioFormatFlags> flags, int endianness, int width, int depth, byte[] silence, AudioFormat unpackFormat, AudioFormatUnpack unpackFunc, AudioFormatPack packFunc) Allocate a new AudioFormatInfo with the fields set to the provided values.AudioFormatInfo(AudioFormat format, String name, String description, Set<AudioFormatFlags> flags, int endianness, int width, int depth, byte[] silence, AudioFormat unpackFormat, AudioFormatUnpack unpackFunc, AudioFormatPack packFunc, Arena arena) Allocate a new AudioFormatInfo with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoidfillSilence(@org.jspecify.annotations.Nullable byte @Nullable [] dest) Filllengthbytes indestwith silence samples forinfo.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the AudioFormatInfo classintRead the value of the fielddepth.Read the value of the fielddescription.intRead the value of the fieldendianness.Read the value of the fieldflags.Read the value of the fieldformat.readName()Read the value of the fieldname.@Nullable AudioFormatPackRead the value of the fieldpack_func.@org.jspecify.annotations.Nullable byte @Nullable []Read the value of the fieldsilence.Read the value of the fieldunpack_format.@Nullable AudioFormatUnpackRead the value of the fieldunpack_func.intRead the value of the fieldwidth.voidwriteDepth(int depth) Write a value in the fielddepth.voidwriteDescription(String description, Arena _arena) Write a value in the fielddescription.voidwriteEndianness(int endianness) Write a value in the fieldendianness.voidwriteFlags(Set<AudioFormatFlags> flags) Write a value in the fieldflags.voidwriteFormat(AudioFormat format) Write a value in the fieldformat.voidWrite a value in the fieldname.voidwritePackFunc(@Nullable AudioFormatPack packFunc, Arena _arena) Write a value in the fieldpack_func.voidwriteSilence(@org.jspecify.annotations.Nullable byte @Nullable [] silence, Arena _arena) Write a value in the fieldsilence.voidwriteUnpackFormat(AudioFormat unpackFormat) Write a value in the fieldunpack_format.voidwriteUnpackFunc(@Nullable AudioFormatUnpack unpackFunc, Arena _arena) Write a value in the fieldunpack_func.voidwriteWidth(int width) Write a value in the fieldwidth.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AudioFormatInfo
Create a AudioFormatInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
AudioFormatInfo
Allocate a new AudioFormatInfo.- Parameters:
arena- to control the memory allocation scope
-
AudioFormatInfo
public AudioFormatInfo()Allocate a new AudioFormatInfo. The memory is allocated withArena.ofAuto(). -
AudioFormatInfo
public AudioFormatInfo(AudioFormat format, String name, String description, Set<AudioFormatFlags> flags, int endianness, int width, int depth, byte[] silence, AudioFormat unpackFormat, AudioFormatUnpack unpackFunc, AudioFormatPack packFunc, Arena arena) Allocate a new AudioFormatInfo with the fields set to the provided values.- Parameters:
format- value for the fieldformatname- value for the fieldnamedescription- value for the fielddescriptionflags- value for the fieldflagsendianness- value for the fieldendiannesswidth- value for the fieldwidthdepth- value for the fielddepthsilence- value for the fieldsilenceunpackFormat- value for the fieldunpackFormatunpackFunc- value for the fieldunpackFuncpackFunc- value for the fieldpackFuncarena- to control the memory allocation scope
-
AudioFormatInfo
public AudioFormatInfo(AudioFormat format, String name, String description, Set<AudioFormatFlags> flags, int endianness, int width, int depth, byte[] silence, AudioFormat unpackFormat, AudioFormatUnpack unpackFunc, AudioFormatPack packFunc) Allocate a new AudioFormatInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
format- value for the fieldformatname- value for the fieldnamedescription- value for the fielddescriptionflags- value for the fieldflagsendianness- value for the fieldendiannesswidth- value for the fieldwidthdepth- value for the fielddepthsilence- value for the fieldsilenceunpackFormat- value for the fieldunpackFormatunpackFunc- value for the fieldunpackFuncpackFunc- value for the fieldpackFunc
-
-
Method Details
-
getType
Get the GType of the AudioFormatInfo class- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readFormat
Read the value of the fieldformat.- Returns:
- The value of the field
format
-
writeFormat
Write a value in the fieldformat.- Parameters:
format- The new value for the fieldformat
-
readName
-
writeName
-
readDescription
Read the value of the fielddescription.- Returns:
- The value of the field
description
-
writeDescription
-
readFlags
Read the value of the fieldflags.- Returns:
- The value of the field
flags
-
writeFlags
Write a value in the fieldflags.- Parameters:
flags- The new value for the fieldflags
-
readEndianness
public int readEndianness()Read the value of the fieldendianness.- Returns:
- The value of the field
endianness
-
writeEndianness
public void writeEndianness(int endianness) Write a value in the fieldendianness.- Parameters:
endianness- The new value for the fieldendianness
-
readWidth
public int readWidth()Read the value of the fieldwidth.- Returns:
- The value of the field
width
-
writeWidth
public void writeWidth(int width) Write a value in the fieldwidth.- Parameters:
width- The new value for the fieldwidth
-
readDepth
public int readDepth()Read the value of the fielddepth.- Returns:
- The value of the field
depth
-
writeDepth
public void writeDepth(int depth) Write a value in the fielddepth.- Parameters:
depth- The new value for the fielddepth
-
readSilence
public @org.jspecify.annotations.Nullable byte @Nullable [] readSilence()Read the value of the fieldsilence.- Returns:
- The value of the field
silence
-
writeSilence
public void writeSilence(@org.jspecify.annotations.Nullable byte @Nullable [] silence, Arena _arena) Write a value in the fieldsilence.- Parameters:
silence- The new value for the fieldsilence
-
readUnpackFormat
Read the value of the fieldunpack_format.- Returns:
- The value of the field
unpack_format
-
writeUnpackFormat
Write a value in the fieldunpack_format.- Parameters:
unpackFormat- The new value for the fieldunpack_format
-
readUnpackFunc
Read the value of the fieldunpack_func.- Returns:
- The value of the field
unpack_func
-
writeUnpackFunc
Write a value in the fieldunpack_func.- Parameters:
unpackFunc- The new value for the fieldunpack_func_arena- to control the memory allocation scope
-
readPackFunc
Read the value of the fieldpack_func.- Returns:
- The value of the field
pack_func
-
writePackFunc
Write a value in the fieldpack_func.- Parameters:
packFunc- The new value for the fieldpack_func_arena- to control the memory allocation scope
-
fillSilence
public void fillSilence(@org.jspecify.annotations.Nullable byte @Nullable [] dest) Filllengthbytes indestwith silence samples forinfo.- Parameters:
dest- a destination to fill- Since:
- 1.20
-