rusty-vban

Crates.iorusty-vban
lib.rsrusty-vban
version0.6.1
sourcesrc
created_at2023-04-01 01:37:24.57035
updated_at2023-12-17 17:34:05.508922
descriptionVBAN API implementation in Rust
homepage
repositoryhttps://github.com/maunolo/rusty-vban
max_upload_size
id827022
size77,088
Mauricio Nogueira Lopes (maunolo)

documentation

https://docs.rs/rusty-vban

README

VBAN API implemented in Rust

API Examples

Emitter

use rusty_vban::emitter::{EmitterBuilder, EmitterOptions};

EmitterBuilder::default()
    .ip_address("192.168.0.1")
    .stream_name("Mic")
    .port(6890) // Optional, default: 6890
    .channels(2) // Optional, default: 2
    .device("default") // Optional, default: "default"
    .backend("default") // Optional, default: "default"
    .build()
    .unwrap()
    .run(EmitterOptions::default())
    .unwrap();

Receptor

use rusty_vban::receptor::{ReceptorBuilder, ReceptorOptions};

ReceptorBuilder::default()
    .latency(16) // Optional, default: 16
    .ip_address("192.168.0.1")
    .stream_name("Mic")
    .port(6890) // Optional, default: 6890
    .channels(2) // Optional, default: 2
    .device("default") // Optional, default: "default"
    .backend("default") // Optional, default: "default"
    .build()
    .unwrap()
    .run(ReceptorOptions::default())
    .unwrap();
Commit count: 25

cargo fmt