1 #ifndef XT_API_DEVICE_H
2 #define XT_API_DEVICE_H
38 #endif // XT_API_DEVICE_H
XtError XtDeviceGetChannelCount(XtDevice const *d, XtBool output, int32_t *count)
Gets the maximum number of channels supported by the device.
Device buffer size limits.
Definition: Structs.h:84
XtError XtDeviceGetBufferSize(XtDevice const *d, const XtFormat *format, XtBufferSize *size)
Gets the buffer size limits supported by the device.
uint64_t XtError
Error type.
Definition: Shared.h:26
Audio mix format.
Definition: Structs.h:29
XtError XtDeviceGetMix(XtDevice const *d, XtBool *valid, XtMix *mix)
Gets the device's current mix format.
XtError XtDeviceSupportsAccess(XtDevice const *d, XtBool interleaved, XtBool *supports)
Indicates whether the device supports the specified access mode.
XtError XtDeviceSupportsFormat(XtDevice const *d, const XtFormat *format, XtBool *supports)
Indicates whether an audio format is supported by the device.
XtError XtDeviceOpenStream(XtDevice *d, XtDeviceStreamParams const *params, void *user, XtStream **stream)
Opens an audio stream on the given device.
#define XT_CALL
Calling convention.
struct XtStream XtStream
opaque audio stream handle
Definition: Shared.h:31
int32_t XtBool
Boolean type.
Definition: Shared.h:25
void * XtDeviceGetHandle(XtDevice const *d)
Implementation-defined handle to the backend device.
struct XtDevice XtDevice
opaque audio device handle
Definition: Shared.h:30
Calling conventions and common data types.
void XtDeviceDestroy(XtDevice *d)
Destroys an audio device.
XtError XtDeviceShowControlPanel(XtDevice *d)
Show the device specific control panel.
XtError XtDeviceGetChannelName(XtDevice const *d, XtBool output, int32_t index, char *buffer, int32_t *size)
Gets the name of a specific input/output channel.
Stream parameters specific to regular (non-aggregated) audio streams.
Definition: Structs.h:107