[][src]Struct cubeb_backend::ContextRef

pub struct ContextRef(_);

Methods

impl ContextRef[src]

pub fn backend_id(&self) -> &str[src]

Important traits for &'_ [u8]
pub fn backend_id_bytes(&self) -> &[u8][src]

pub fn max_channel_count(&self) -> Result<u32, Error>[src]

pub fn min_latency(&self, params: &StreamParamsRef) -> Result<u32, Error>[src]

pub fn preferred_sample_rate(&self) -> Result<u32, Error>[src]

pub unsafe fn stream_init(
    &self,
    stream_name: Option<&CStr>,
    input_device: *const c_void,
    input_stream_params: Option<&StreamParamsRef>,
    output_device: *const c_void,
    output_stream_params: Option<&StreamParamsRef>,
    latency_frames: u32,
    data_callback: Option<unsafe extern "C" fn(*mut cubeb_stream, *mut c_void, *const c_void, *mut c_void, i64) -> i64>,
    state_callback: Option<unsafe extern "C" fn(*mut cubeb_stream, *mut c_void, u32)>,
    user_ptr: *mut c_void
) -> Result<Stream, Error>
[src]

pub fn enumerate_devices(
    &self,
    devtype: DeviceType
) -> Result<DeviceCollection, Error>
[src]

pub unsafe fn register_device_collection_changed(
    &self,
    devtype: DeviceType,
    callback: Option<unsafe extern "C" fn(*mut cubeb, *mut c_void)>,
    user_ptr: *mut c_void
) -> Result<(), Error>
[src]

impl ContextRef[src]

pub unsafe fn from_ptr<'a>(ptr: *mut cubeb) -> &'a ContextRef[src]

pub unsafe fn from_ptr_mut<'a>(ptr: *mut cubeb) -> &'a mut ContextRef[src]

pub fn as_ptr(&self) -> *mut cubeb[src]

Trait Implementations

impl AsRef<ContextRef> for Context[src]

impl Borrow<ContextRef> for Context[src]

impl Debug for ContextRef[src]

Auto Trait Implementations

impl Send for ContextRef

impl !Sync for ContextRef

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]