{"id":13603567,"url":"https://github.com/ruuda/claxon","last_synced_at":"2025-05-15T17:03:22.232Z","repository":{"id":25625986,"uuid":"29061244","full_name":"ruuda/claxon","owner":"ruuda","description":"A FLAC decoder in Rust","archived":false,"fork":false,"pushed_at":"2025-04-06T17:33:34.000Z","size":825,"stargazers_count":300,"open_issues_count":9,"forks_count":28,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-14T12:06:38.920Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruuda.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-01-10T15:29:07.000Z","updated_at":"2025-05-09T22:05:16.000Z","dependencies_parsed_at":"2024-06-18T18:38:34.311Z","dependency_job_id":"145c6bac-8dbd-4d22-be93-d143f970df74","html_url":"https://github.com/ruuda/claxon","commit_stats":{"total_commits":606,"total_committers":8,"mean_commits":75.75,"dds":"0.024752475247524774","last_synced_commit":"20fd6a78830ec75918175b2375c21dd667b894ce"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fclaxon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fclaxon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fclaxon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fclaxon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruuda","download_url":"https://codeload.github.com/ruuda/claxon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384937,"owners_count":22062421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:00:25.425Z","updated_at":"2025-05-15T17:03:22.211Z","avatar_url":"https://github.com/ruuda.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"Claxon\n======\n\nA FLAC decoding library in Rust.\n\n[![Build Status][ci-img]][ci]\n[![Crates.io version][crate-img]][crate]\n[![Changelog][changelog-img]][changelog]\n[![Documentation][docs-img]][docs]\n\nClaxon is a FLAC decoder written in pure Rust. It has been fuzzed and verified\nagainst the reference decoder for correctness. Its performance is similar to the\nreference decoder.\n\nExample\n-------\nThe following example computes the root mean square (RMS) of a FLAC file:\n\n```rust\nlet mut reader = claxon::FlacReader::open(\"testsamples/pop.flac\").unwrap();\nlet mut sqr_sum = 0.0;\nlet mut count = 0;\nfor sample in reader.samples() {\n    let s = sample.unwrap() as f64;\n    sqr_sum += s * s;\n    count += 1;\n}\nprintln!(\"RMS is {}\", (sqr_sum / count as f64).sqrt());\n```\n\nMore examples can be found in the examples directory. For a simple example\nof decoding a FLAC file to wav with Claxon and [Hound][hound], see\n[decode_simple.rs](examples/decode_simple.rs). A more efficient way\nof decoding requires dealing with a few details of the FLAC format.\nSee [decode.rs](examples/decode.rs) for an example.\n\nPerformance\n-----------\nThese are the times to decode 5 real-world FLAC files to wav, average and\nstandard deviation of 11 runs, normalized to version 1.3.2 of the [reference\nimplementation][ref-flac]. Measurements were done on a Skylake i7. Claxon was\ncompiled with Rust 1.26.0.\n\n| Decoder | Time / reference |\n| ------- | ---------------- |\n| Claxon  | 1.10 ± 0.01      |\n| libflac | 1.00 ± 0.01      |\n\nNote that for decent performance, Claxon should be compiled with\n`-C codegen-units=1` on Rust ≥ 1.24.0. Not passing this `RUSTFLAG` can\ncause as much as a 45% increase in running time.\n\nContributing\n------------\nContributions in the form of bug reports, feature requests, or pull requests are\nwelcome. See [contributing.md](contributing.md).\n\nLicense\n-------\nClaxon is licensed under the [Apache 2.0][apache2] license. It may be used in\nfree software as well as closed-source applications, both for commercial and\nnon-commercial use under the conditions given in the license. If you want to\nuse Claxon in your GPLv2-licensed software, you can add an [exception][except]\nto your copyright notice. Please do not open an issue if you disagree with the\nchoice of license.\n\n[ci-img]:        https://travis-ci.org/ruuda/claxon.svg?branch=master\n[ci]:            https://travis-ci.org/ruuda/claxon\n[crate-img]:     https://img.shields.io/crates/v/claxon.svg\n[crate]:         https://crates.io/crates/claxon\n[changelog-img]: https://img.shields.io/badge/changelog-online-blue.svg\n[changelog]:     https://github.com/ruuda/claxon/blob/master/changelog.md#changelog\n[docs-img]:      https://img.shields.io/badge/docs-online-blue.svg\n[docs]:          https://docs.rs/claxon\n[hound]:         https://github.com/ruuda/hound\n[ref-flac]:      https://git.xiph.org/?p=flac.git\n[apache2]:       https://www.apache.org/licenses/LICENSE-2.0\n[except]:        https://www.gnu.org/licenses/gpl-faq.html#GPLIncompatibleLibs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruuda%2Fclaxon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruuda%2Fclaxon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruuda%2Fclaxon/lists"}