Struct cubeb_core::ContextRef
[−]
[src]
pub struct ContextRef(_);
Methods
impl ContextRef
[src]
pub unsafe fn from_ptr<'a>(ptr: *mut cubeb) -> &'a Self
[src]
pub unsafe fn from_ptr_mut<'a>(ptr: *mut cubeb) -> &'a mut Self
[src]
pub fn as_ptr(&self) -> *mut cubeb
[src]
impl ContextRef
[src]
pub fn backend_id(&self) -> &str
[src]
pub fn backend_id_bytes(&self) -> &[u8]
[src]
pub fn max_channel_count(&self) -> Result<u32>
[src]
pub fn min_latency(&self, params: &StreamParamsRef) -> Result<u32>
[src]
pub fn preferred_sample_rate(&self) -> Result<u32>
[src]
pub fn preferred_channel_layout(&self) -> Result<ChannelLayout>
[src]
pub unsafe fn stream_init(
&self,
stream_name: Option<&CStr>,
input_device: DeviceId,
input_stream_params: Option<&StreamParamsRef>,
output_device: DeviceId,
output_stream_params: Option<&StreamParamsRef>,
latency_frames: u32,
data_callback: cubeb_data_callback,
state_callback: cubeb_state_callback,
user_ptr: *mut c_void
) -> Result<Stream>
[src]
&self,
stream_name: Option<&CStr>,
input_device: DeviceId,
input_stream_params: Option<&StreamParamsRef>,
output_device: DeviceId,
output_stream_params: Option<&StreamParamsRef>,
latency_frames: u32,
data_callback: cubeb_data_callback,
state_callback: cubeb_state_callback,
user_ptr: *mut c_void
) -> Result<Stream>
pub fn enumerate_devices(&self, devtype: DeviceType) -> Result<DeviceCollection>
[src]
pub unsafe fn register_device_collection_changed(
&self,
devtype: DeviceType,
callback: cubeb_device_collection_changed_callback,
user_ptr: *mut c_void
) -> Result<()>
[src]
&self,
devtype: DeviceType,
callback: cubeb_device_collection_changed_callback,
user_ptr: *mut c_void
) -> Result<()>
Trait Implementations
impl Borrow<ContextRef> for Context
[src]
fn borrow(&self) -> &ContextRef
[src]
Immutably borrows from an owned value. Read more
impl AsRef<ContextRef> for Context
[src]
fn as_ref(&self) -> &ContextRef
[src]
Performs the conversion.