Crates.io | audio-codec-algorithms |
lib.rs | audio-codec-algorithms |
version | 0.6.0 |
source | src |
created_at | 2024-03-31 12:56:16.965382 |
updated_at | 2024-07-24 06:19:34.294491 |
description | Audio codec algorithms: A-law, μ-law and IMA ADPCM |
homepage | |
repository | https://github.com/karip/audio-codec-algorithms |
max_upload_size | |
id | 1191658 |
size | 217,141 |
Decoding and encoding for few basic audio codecs implemented in Rust:
Features:
Try out decoding and encoding values:
cargo run --example codec-tester decode ulaw 3 130 221
cargo run --example codec-tester encode alaw 10 -5430 3263
cargo run --example codec-tester encode adpcm_ima 25 40 60 80 100 160 220
cargo run --example codec-tester decode adpcm_ima 7 7 2 2 2 7 5
Run:
# run the tests
cargo test
# ensure good code quality
cargo clippy
# ensure that the release build never panics
cargo test --release --features internal-no-panic
Performance testing:
cargo bench
There is a GitHub Action called "Cross-platform tests" (cross-test.yml), which automatically
runs cargo test
for little-endian 64-bit x64_86 and big-endian 32-bit PowerPC.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.