Sakuraqwq1/moonaudio/src/audio does not have a README file
pub(all) suberror AudioError {
Truncated(String)
Unsupported(String)
Invalid(String)
OutOfRange(String)
}fn AudioBuffer::from_channels(sample_rate : Int, channels : Array[Array[Double]]) -> AudioBuffer raise AudioErrorfn AudioBuffer::silence(sample_rate : Int, channels : Int, frames : Int) -> AudioBuffer raise AudioErrorpub(all) enum SampleFormat {
U8
I16
I24
I32
F32
F64
}fn alaw_decode(byte : Int) -> Doublefn alaw_encode(sample : Double) -> Intfn ascii_at(data : Bytes, offset : Int, length : Int) -> String?fn ascii_is(data : Bytes, offset : Int, length : Int, expected : String) -> Boolfn clamp_sample(value : Double) -> Doublefn dbfs(amplitude : Double) -> Doublefn double_to_f32_bits(value : Double) -> Int64fn f32_bits_to_double(bits : Int64) -> Doublefn lerp(a : Double, b : Double, t : Double) -> Doublefn mulaw_decode(byte : Int) -> Doublefn mulaw_encode(sample : Double) -> Intfn sign_extend(raw : Int, bits : Int) -> Intfn u16le_bytes(value : Int) -> BytesInstall
Download zipPure MoonBit audio toolkit: WAV/AIFF/AU/FLAC decoding, PCM conversion, resampling, FFT and spectrograms, with zero platform bindings.