hodaun 0.2.0

Audio IO and synthesis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use hodaun::*;

fn main() {
    let input = InputDeviceSource::with_default_device().unwrap();
    println!("{} input channel(s)", input.channels());

    let mut output = OutputDeviceMixer::<Stereo>::with_default_device().unwrap();

    println!(
        "sample rates: {} -> {}",
        input.sample_rate(),
        output.sample_rate()
    );

    output.add(input.resample());

    output.play_blocking().unwrap();
}