# rezin-flac

- A Rust implementation of the FLAC (Free Lossless Audio Codec) specification.
- Works with 16bit & 24bit audio. Supports various sample rates.
- Based on hare-flac

## Usage

Build from *rezin* root:

```bash
cargo build --release -p rezin-flac
```

Test the encoder:

```bash
./target/release/flac-enc example.wav output.flac
```

Test the decoder:

```bash
./target/release/flac-dec example.flac output.wav
```

Run tests:

```bash
cargo test -p rezin-flac
```

## Notes

Initial performance metrics are hugely improved from the hare-flac implementation.
With 32 workers (9950X CPU) encoding & decoding speeds exceed ffmpeg. 
Compression rations are equal to hare-flac. This means on average within ~2% of ffmpeg.
