Struct cubeb::ContextRef
[−]
[src]
pub struct ContextRef(_);
Methods
impl ContextRef
[src]
fn backend_id(&self) -> &str
[src]
fn backend_id_bytes(&self) -> &[u8]
[src]
fn max_channel_count(&self) -> Result<u32, Error>
[src]
fn min_latency(&self, params: &StreamParamsRef) -> Result<u32, Error>
[src]
fn preferred_sample_rate(&self) -> Result<u32, Error>
[src]
fn preferred_channel_layout(&self) -> Result<ChannelLayout, Error>
[src]
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]
&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>
fn enumerate_devices(
&self,
devtype: DeviceType
) -> Result<DeviceCollection, Error>
[src]
&self,
devtype: DeviceType
) -> Result<DeviceCollection, Error>
fn device_collection_destroy(
&self,
collection: DeviceCollection
) -> Result<(), Error>
[src]
&self,
collection: DeviceCollection
) -> Result<(), Error>
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]
&self,
devtype: DeviceType,
callback: Option<unsafe extern "C" fn(*mut cubeb, *mut c_void)>,
user_ptr: *mut c_void
) -> Result<(), Error>