12 #ifndef ROC_SNDIO_DRIVER_H_
13 #define ROC_SNDIO_DRIVER_H_
24 static const size_t MaxDrivers = 128;
75 unsigned int driver_flags,
80 if (!driver_name || strlen(driver_name) >
sizeof(
name) - 1) {
83 strcpy(
name, driver_name);
const char * driver_type_to_str(DriverType type)
Convert driver type to string.
@ DriverFlag_IsDefault
Driver is used if no file or device is specified.
@ DriverFlag_SupportsSink
Driver supports sinks (output).
@ DriverFlag_SupportsSource
Driver supports sources (input).
@ DriverType_Invalid
Invalid type.
@ DriverType_Device
Driver for audio devices.
@ DriverType_File
Driver for audio files.
#define roc_panic(...)
Print error message and terminate program gracefully.
Commonly used types and functions.
DriverType type
Driver type.
DriverInfo(const char *driver_name, DriverType driver_type, unsigned int driver_flags, IBackend *driver_backend)
Initialize.
char name[20]
Driver name.
IBackend * backend
Backend the driver uses.
unsigned int flags
Driver flags.