Struct cubeb_core::DeviceRef
[−]
[src]
pub struct DeviceRef(_);
Methods
impl DeviceRef
[src]
pub unsafe fn from_ptr<'a>(ptr: *mut cubeb_device) -> &'a Self
[src]
pub unsafe fn from_ptr_mut<'a>(ptr: *mut cubeb_device) -> &'a mut Self
[src]
pub fn as_ptr(&self) -> *mut cubeb_device
[src]
impl DeviceRef
[src]
pub fn output_name(&self) -> Option<&str>
[src]
Gets the output device name.
May return None
if there is no output device.
pub fn output_name_bytes(&self) -> Option<&[u8]>
[src]
pub fn input_name(&self) -> Option<&str>
[src]
Gets the input device name.
May return None
if there is no input device.