Package org.freedesktop.gstreamer.audio
Class AudioCdSrcTrack
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.audio.AudioCdSrcTrack
- All Implemented Interfaces:
Proxy
CD track abstraction to communicate TOC entries to the base class.
This structure is only for use by sub-classed in connection with gst_audio_cd_src_add_track().
Applications will be informed of the available tracks via a TOC message
on the pipeline's GstBus
instead.
-
Constructor Summary
ConstructorDescriptionAllocate a new AudioCdSrcTrack.AudioCdSrcTrack
(boolean isAudio, int num, int start, int end, TagList tags) Allocate a new AudioCdSrcTrack with the fields set to the provided values.AudioCdSrcTrack
(boolean isAudio, int num, int start, int end, TagList tags, Arena arena) Allocate a new AudioCdSrcTrack with the fields set to the provided values.AudioCdSrcTrack
(Arena arena) Allocate a new AudioCdSrcTrack.AudioCdSrcTrack
(MemorySegment address) Create a AudioCdSrcTrack proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.int
readEnd()
Read the value of the fieldend
.boolean
Read the value of the fieldis_audio
.int
readNum()
Read the value of the fieldnum
.int
Read the value of the fieldstart
.readTags()
Read the value of the fieldtags
.void
writeEnd
(int end) Write a value in the fieldend
.void
writeIsAudio
(boolean isAudio) Write a value in the fieldis_audio
.void
writeNum
(int num) Write a value in the fieldnum
.void
writeStart
(int start) Write a value in the fieldstart
.void
Write a value in the fieldtags
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AudioCdSrcTrack
Create a AudioCdSrcTrack proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AudioCdSrcTrack
Allocate a new AudioCdSrcTrack.- Parameters:
arena
- to control the memory allocation scope
-
AudioCdSrcTrack
public AudioCdSrcTrack()Allocate a new AudioCdSrcTrack. The memory is allocated withArena.ofAuto()
. -
AudioCdSrcTrack
Allocate a new AudioCdSrcTrack with the fields set to the provided values.- Parameters:
isAudio
- value for the fieldisAudio
num
- value for the fieldnum
start
- value for the fieldstart
end
- value for the fieldend
tags
- value for the fieldtags
arena
- to control the memory allocation scope
-
AudioCdSrcTrack
Allocate a new AudioCdSrcTrack with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
isAudio
- value for the fieldisAudio
num
- value for the fieldnum
start
- value for the fieldstart
end
- value for the fieldend
tags
- value for the fieldtags
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readIsAudio
public boolean readIsAudio()Read the value of the fieldis_audio
.- Returns:
- The value of the field
is_audio
-
writeIsAudio
public void writeIsAudio(boolean isAudio) Write a value in the fieldis_audio
.- Parameters:
isAudio
- The new value for the fieldis_audio
-
readNum
public int readNum()Read the value of the fieldnum
.- Returns:
- The value of the field
num
-
writeNum
public void writeNum(int num) Write a value in the fieldnum
.- Parameters:
num
- The new value for the fieldnum
-
readStart
public int readStart()Read the value of the fieldstart
.- Returns:
- The value of the field
start
-
writeStart
public void writeStart(int start) Write a value in the fieldstart
.- Parameters:
start
- The new value for the fieldstart
-
readEnd
public int readEnd()Read the value of the fieldend
.- Returns:
- The value of the field
end
-
writeEnd
public void writeEnd(int end) Write a value in the fieldend
.- Parameters:
end
- The new value for the fieldend
-
readTags
-
writeTags
Write a value in the fieldtags
.- Parameters:
tags
- The new value for the fieldtags
-