audio-codec-algorithms 0.5.5

Audio codec algorithms: A-law and μ-law
Documentation

# Audio Codec Algorithms

[![Cross-platform tests](https://github.com/karip/audio-codec-algorithms/actions/workflows/cross-test.yml/badge.svg)](https://github.com/karip/audio-codec-algorithms/actions/workflows/cross-test.yml)

Audio decoding and encoding for few basic codecs implemented in Rust. Supported codecs are:

 - [G.711 A-law]https://en.wikipedia.org/wiki/G.711#A-law
 - [G.711 μ-law]https://en.wikipedia.org/wiki/G.711#μ-law

Features:

 - supports no_std
 - no heap memory allocations
 - no unsafe code
 - no panicking
 - only dependencies for testing: no-panic and criterion

## Running the example

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

## Running tests

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

## License

Public Domain. Creative Commons Zero (CC0-1.0).