MinAudio::AudioBuffer
Constructors
from_file(path : String) : self
Decode a file from disk (WAV/MP3/FLAC — whatever the vendored miniaudio builds decode; Vorbis is off by default). Raises MinAudio::Error on unreadable/undecodable input.
Instance methods
channels
Sourceclose
Free the decoded PCM. Idempotent — but every Sound playing through this buffer must be stopped/closed first (a live Sound reading freed memory would crash the audio thread).
closed?
Sourcefinalize
Sourcesample_rate
Source