Raudio::Wave
Inherits Reference < Object
Wave represents raw audio data Use this for loading and manipulating audio waveforms
Constructors
load(filename : String | Path) : self
Load wave data from file Supported formats: WAV, OGG, MP3, FLAC, QOA
Class methods
load(filename : String | Path, &)
Sourceunload_samples(samples : Slice(Float32))
Unload wave samples data
Only call this on samples returned by load_samples
Instance methods
close
Sourcefinalize
Sourceformat(sample_rate : Int32, sample_size : Int32, channels : Int32)
Convert wave data to desired format
load_samples
Load wave samples as a floats array
Returns a Slice of Float32 containing the sample data
Note: You must manually call unload_samples on the returned pointer when done
release
Sourcereleased?
Source