Package com.raylib
Class Sound
java.lang.Object
com.raylib.Sound
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionSound()
Construct with auto memory allocator and fields initialized to zero.Sound
(AudioStream stream, int frameCount) Construct with auto memory allocator and fields initialized as specifiedSound
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectSound
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedSound
(SegmentAllocator arena, AudioStream stream, int frameCount) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic Sound
allocateArray
(long elementCount) Allocate an array of Soundstatic Sound
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Soundboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) int
Total number of frames (considering channels)Audio streamint
hashCode()
setFrameCount
(int value) Total number of frames (considering channels)setStream
(AudioStream value) Audio stream
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
Sound
public Sound()Construct with auto memory allocator and fields initialized to zero. -
Sound
Construct with your owm memory allocator and fields not initialized -
Sound
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
Sound
Construct with auto memory allocator and fields initialized as specified- Parameters:
stream
- Audio streamframeCount
- Total number of frames (considering channels)
-
Sound
Construct with your own memory allocator and fields initialized as specified- Parameters:
stream
- Audio streamframeCount
- Total number of frames (considering channels)
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of Sound -
allocateArray
Allocate an array of Sound -
getStream
Audio stream -
setStream
Audio stream -
getFrameCount
public int getFrameCount()Total number of frames (considering channels) -
setFrameCount
Total number of frames (considering channels)
-