cubeb 0.35.3

Bindings to libcubeb for interacting with system audio from rust.
Documentation
1
2
3
4
5
6
7
8
9
use crate::{Context, Result};
use std::ffi::CString;

/// Initialize a new cubeb [`Context`]
pub fn init<T: Into<Vec<u8>>>(name: T) -> Result<Context> {
    let name = CString::new(name)?;

    Context::init(Some(name.as_c_str()), None)
}