edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBb02f499Tahinli1 month ago1000 commits
| 1 | //! Writes interleaved PCM as a `.flac` file through `ec-flac`, the family's own |
| 2 | //! encoder (fixed 4096-sample blocks, LPC, Rice partitions, stereo |
| 3 | //! decorrelation, and an MD5 in `STREAMINFO` that any decoder can check). |
| 4 | //! |
| 5 | //! The export path only ever asks for 16 bits; the bit depth is a parameter so |
| 6 | //! the parity tests can write 24-bit streams through the same function. |
| 7 | |
| 8 | use Path; |
| 9 | |
| 10 | use EncoderConfig; |
| 11 | |
| 12 | /// Encode `samples` (interleaved by channel, each already within |
| 13 | /// `bits_per_sample`) and write the stream to `out`. |
| 14 | /// |
| 15 | /// `EncoderConfig::default()` is the level the family ships. Edith has no |
| 16 | /// FLAC compression setting, so there is nothing to map: the export always |
| 17 | /// asks for that default. |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 |