Uses of Class
com.raylib.Wave
Packages that use Wave
-
Uses of Wave in com.raylib
Methods in com.raylib that return WaveModifier and TypeMethodDescriptionstatic Wave
Wave.allocateArray
(long elementCount) Allocate an array of Wavestatic Wave
Wave.allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of WaveWave.getArrayElement
(int index) static Wave
Load wave data from filestatic Wave
Load wave data from filestatic Wave
Raylib.loadWaveFromMemory
(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.static Wave
Raylib.loadWaveFromMemory
(String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.Wave.setChannels
(int value) Number of channels (1-mono, 2-stereo, ...)Wave.setData
(MemorySegment value) Buffer data pointerWave.setFrameCount
(int value) Total number of frames (considering channels)Wave.setSampleRate
(int value) Frequency (samples per second)Wave.setSampleSize
(int value) Bit depth (bits per sample): 8, 16, 32 (24 not supported)static Wave
Copy a wave to a new wavestatic Wave
Copy a wave to a new waveMethods in com.raylib with parameters of type WaveModifier and TypeMethodDescriptionstatic boolean
Raylib.exportWave
(Wave wave, String fileName) Export wave data to file, returns true on successstatic boolean
Raylib.exportWaveAsCode
(Wave wave, String fileName) Export wave sample data to code (.h), returns true on successstatic boolean
Raylib.isWaveReady
(Wave wave) Checks if wave data is readystatic Sound
Raylib.loadSoundFromWave
(Wave wave) Load sound from wave datastatic Sound
Raylib.loadSoundFromWave
(Arena arena, Wave wave) Load sound from wave datastatic FloatBuffer
Raylib.loadWaveSamples
(Wave wave) Load samples data from wave as a 32bit float data arraystatic void
Raylib.unloadWave
(Wave wave) Unload wave datastatic Wave
Copy a wave to a new wavestatic Wave
Copy a wave to a new wavestatic void
Crop a wave to defined samples rangestatic void
Raylib.waveFormat
(Wave wave, int sampleRate, int sampleSize, int channels) Convert wave data to desired format