teamtalk 6.0.0

TeamTalk SDK for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use teamtalk::Client;
use teamtalk::client::audio::AudioDeviceProfile;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new()?;
    let profile = client.default_audio_profile();
    let _ = client.apply_audio_profile(profile);
    let duplex = AudioDeviceProfile::duplex(profile.input_id, profile.output_id);
    let _ = client.apply_audio_profile(duplex);
    Ok(())
}