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 WaveWave.allocateArray(long elementCount) Allocate an array of Wavestatic WaveWave.allocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of WaveWave.channels(int value) Number of channels (1-mono, 2-stereo, ...)Wave.data(MemorySegment value) Buffer data pointerWave.frameCount(int value) Total number of frames (considering channels)Wave.getArrayElement(int index) static WaveLoad wave data from filestatic WaveLoad wave data from filestatic WaveRaylib.loadWaveFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.static WaveRaylib.loadWaveFromMemory(String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.Wave.sampleRate(int value) Frequency (samples per second)Wave.sampleSize(int value) Bit depth (bits per sample): 8, 16, 32 (24 not supported)static WaveCopy a wave to a new wavestatic WaveCopy a wave to a new waveMethods in com.raylib with parameters of type WaveModifier and TypeMethodDescriptionstatic booleanRaylib.exportWave(Wave wave, String fileName) Export wave data to file, returns true on successstatic booleanRaylib.exportWaveAsCode(Wave wave, String fileName) Export wave sample data to code (.h), returns true on successstatic booleanRaylib.isWaveValid(Wave wave) Checks if wave data is valid (data loaded and parameters)static SoundRaylib.loadSoundFromWave(Wave wave) Load sound from wave datastatic SoundRaylib.loadSoundFromWave(Arena arena, Wave wave) Load sound from wave datastatic FloatBufferRaylib.loadWaveSamples(Wave wave) Load samples data from wave as a 32bit float data arraystatic voidRaylib.unloadWave(Wave wave) Unload wave datastatic WaveCopy a wave to a new wavestatic WaveCopy a wave to a new wavestatic voidCrop a wave to defined frames rangestatic voidRaylib.waveFormat(Wave wave, int sampleRate, int sampleSize, int channels) Convert wave data to desired format