cubeb 0.0.0
Loading...
Searching...
No Matches
Data Fields
cubeb_device_info Struct Reference

This structure holds the characteristics of an input or output audio device. More...

#include <cubeb.h>

Data Fields

cubeb_devid devid
 Device identifier handle.
 
char const * device_id
 Device identifier which might be presented in a UI.
 
char const * friendly_name
 Friendly device name which might be presented in a UI.
 
char const * group_id
 Two devices have the same group identifier if they belong to the same physical device; for example a headset and microphone.
 
char const * vendor_name
 Optional vendor name, may be NULL.
 
cubeb_device_type type
 Type of device (Input/Output).
 
cubeb_device_state state
 State of device disabled/enabled/unplugged.
 
cubeb_device_pref preferred
 Preferred device.
 
cubeb_device_fmt format
 Sample format supported.
 
cubeb_device_fmt default_format
 The default sample format for this device.
 
uint32_t max_channels
 Channels.
 
uint32_t default_rate
 Default/Preferred sample rate.
 
uint32_t max_rate
 Maximum sample rate supported.
 
uint32_t min_rate
 Minimum sample rate supported.
 
uint32_t latency_lo
 Lowest possible latency in frames.
 
uint32_t latency_hi
 Higest possible latency in frames.
 

Detailed Description

This structure holds the characteristics of an input or output audio device.

It is obtained using cubeb_enumerate_devices, which returns these structures via cubeb_device_collection and must be destroyed via cubeb_device_collection_destroy.


The documentation for this struct was generated from the following file: