babycat 0.0.15

An audio decoding and manipulation library, with bindings for C, Python, and WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod fixtures;

mod test_append {
    use crate::fixtures::new_small_waveform;
    use babycat::Source;

    #[test]
    fn test_do_nothing() {
        let waveform = new_small_waveform();

        let ws = waveform.into_source();
        assert_eq!(ws.size_hint(), (30, Some(30)));

        let ws = ws.append_zeros(0);
        assert_eq!(ws.size_hint(), (30, Some(30)));
    }
}