Sakuraqwq1/moonflac-encoder/src/encode does not have a README file
pub suberror EncodeError {
Empty
BadChannels(Int)
BadBits(Int)
BadSampleRate(Int)
NotWholeFrames(Int, Int)
}pub struct StreamEncoder {
sample_rate : Int
channels : Int
bits : Int
frame_number : Int
buffer : Array[Int64]
filled : Int
}fn StreamEncoder::new(sample_rate : Int, channels : Int, bits_per_sample : Int) -> StreamEncoder raise EncodeErrorfn encode(samples : Array[Int64], sample_rate : Int, channels : Int, bits_per_sample : Int) -> Bytes raise EncodeErrorInstall
Download zipPure MoonBit FLAC encoder: turn interleaved PCM into a native .flac stream with fixed and LPC prediction, Rice partitioned residuals and stereo decorrelation.