Struct cubeb_core::DeviceInfoRef
[−]
[src]
pub struct DeviceInfoRef(_);
Methods
impl DeviceInfoRef[src]
pub unsafe fn from_ptr<'a>(ptr: *mut cubeb_device_info) -> &'a Self[src]
pub unsafe fn from_ptr_mut<'a>(ptr: *mut cubeb_device_info) -> &'a mut Self[src]
pub fn as_ptr(&self) -> *mut cubeb_device_info[src]
impl DeviceInfoRef[src]
pub fn devid(&self) -> DeviceId[src]
Device identifier handle.
pub fn device_id(&self) -> Option<&str>[src]
Device identifier which might be presented in a UI.
pub fn device_id_bytes(&self) -> Option<&[u8]>[src]
pub fn friendly_name(&self) -> Option<&str>[src]
Friendly device name which might be presented in a UI.
pub fn friendly_name_bytes(&self) -> Option<&[u8]>[src]
pub fn group_id(&self) -> Option<&str>[src]
Two devices have the same group identifier if they belong to the same physical device; for example a headset and microphone.
pub fn group_id_bytes(&self) -> Option<&[u8]>[src]
pub fn vendor_name(&self) -> Option<&str>[src]
Optional vendor name, may be None.
pub fn vendor_name_bytes(&self) -> Option<&[u8]>[src]
pub fn device_type(&self) -> DeviceType[src]
Type of device (Input/Output).
pub fn state(&self) -> DeviceState[src]
State of device disabled/enabled/unplugged.
pub fn preferred(&self) -> DevicePref[src]
Preferred device.
pub fn format(&self) -> DeviceFormat[src]
Sample format supported.
pub fn default_format(&self) -> DeviceFormat[src]
The default sample format for this device.
pub fn max_channels(&self) -> u32[src]
Channels.
pub fn default_rate(&self) -> u32[src]
Default/Preferred sample rate.
pub fn max_rate(&self) -> u32[src]
Maximum sample rate supported.
pub fn min_rate(&self) -> u32[src]
Minimum sample rate supported.
pub fn latency_lo(&self) -> u32[src]
Lowest possible latency in frames.
pub fn latency_hi(&self) -> u32[src]
Higest possible latency in frames.
Trait Implementations
impl Borrow<DeviceInfoRef> for DeviceInfo[src]
fn borrow(&self) -> &DeviceInfoRef[src]
Immutably borrows from an owned value. Read more
impl AsRef<DeviceInfoRef> for DeviceInfo[src]
fn as_ref(&self) -> &DeviceInfoRef[src]
Performs the conversion.