syom 0.6.0

just aac. Pure-Rust AAC-LC / HE-AAC codec: decode (ADTS, M4A, LATM) and LC encode.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! DecodeOptions defaults.

#![allow(clippy::unwrap_used, clippy::expect_used)]

use super::*;

#[test]
fn speech_defaults() {
    let o = DecodeOptions::speech();
    assert_eq!(o.channel_mode, ChannelMode::Mono);
    assert_eq!(o.max_frames(16_000), 16_000 * 7200);
    assert_eq!(o.with_max_duration_secs(1.0).max_frames(16_000), 16_000);
}