The encoding implementation in [mach-flac](https://github.com/hexops/mach-flac/tree/main/src) should be brought up to standards and there should be an example of encoding a flac file.