Struct cubeb::DeviceInfo
[−]
[src]
pub struct DeviceInfo(_);
Methods
impl DeviceInfo
[src]
pub fn as_ptr(&self) -> *mut cubeb_device_info
[src]
Methods from Deref<Target = DeviceInfoRef>
pub fn devid(&self) -> *const c_void
[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.
pub fn as_ptr(&self) -> *mut cubeb_device_info
[src]
Trait Implementations
impl Default for DeviceInfo
[src]
fn default() -> DeviceInfo
[src]
Returns the "default value" for a type. Read more
impl AsRef<DeviceInfoRef> for DeviceInfo
[src]
fn as_ref(&self) -> &DeviceInfoRef
[src]
Performs the conversion.
impl Deref for DeviceInfo
[src]
type Target = DeviceInfoRef
The resulting type after dereferencing.
fn deref(&self) -> &DeviceInfoRef
[src]
Dereferences the value.
impl DerefMut for DeviceInfo
[src]
fn deref_mut(&mut self) -> &mut DeviceInfoRef
[src]
Mutably dereferences the value.
impl Borrow<DeviceInfoRef> for DeviceInfo
[src]
fn borrow(&self) -> &DeviceInfoRef
[src]
Immutably borrows from an owned value. Read more
impl From<cubeb_device_info> for DeviceInfo
[src]
fn from(x: cubeb_device_info) -> DeviceInfo
[src]
Performs the conversion.