MinAudio::Decoder
Constructors
Decode a file from disk.
Instance methods
close
Sourceclosed?
Sourcecursor_frames
Sourcefinalize
Sourcelength_frames
Total frames (a frame = one sample per channel). 0 when unknown (streams). For MP3 this decodes the whole file — do not call it in a hot loop.
Read up to frame_count frames as interleaved Float32 samples
(frame_count * channels * 4 bytes). Shorter than requested means
end of data; empty means done.
sample_rate
Source