1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//!
//! This crate contains simple audio codecs. 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)
//!
// SPDX-License-Identifier: CC0-1.0

#![no_std]

#![forbid(
    unsafe_code,
    clippy::panic,
    clippy::exit,
    clippy::unwrap_used,
    clippy::expect_used,
    clippy::unimplemented,
    clippy::todo,
    clippy::unreachable,
)]
#![deny(
    clippy::cast_ptr_alignment,
    clippy::char_lit_as_u8,
    clippy::unnecessary_cast,
    clippy::cast_lossless,
    clippy::cast_possible_truncation,
    clippy::cast_possible_wrap,
    clippy::cast_sign_loss,
    clippy::checked_conversions,
)]

mod alaw;
pub use alaw::{decode_alaw, encode_alaw};

mod ulaw;
pub use ulaw::{decode_ulaw, encode_ulaw};