XT-Audio
XtService.h
Go to the documentation of this file.
1 #ifndef XT_API_SERVICE_H
2 #define XT_API_SERVICE_H
3 
5 #include <xt/api/Enums.h>
6 #include <xt/api/Shared.h>
7 #include <xt/api/Structs.h>
8 #include <stdint.h>
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 XT_API XtServiceCaps XT_CALL
17 XT_API XtError XT_CALL
18 XtServiceOpenDevice(XtService const* s, char const* id, XtDevice** device);
19 XT_API XtError XT_CALL
21 XT_API XtError XT_CALL
22 XtServiceGetDefaultDeviceId(XtService const* s, XtBool output, XtBool* valid, char* buffer, int32_t* size);
23 XT_API XtError XT_CALL
24 XtServiceAggregateStream(XtService const* s, XtAggregateStreamParams const* params, void* user, XtStream** stream);
25 
26 #ifdef __cplusplus
27 }
28 #endif // __cplusplus
29 #endif // XT_API_SERVICE_H
Stream parameters specific to aggregated audio streams.
Definition: Structs.h:121
XtServiceCaps
Audio service capabilities.
Definition: Enums.h:10
XtError XtServiceGetDefaultDeviceId(XtService const *s, XtBool output, XtBool *valid, char *buffer, int32_t *size)
Get default device id.
struct XtDeviceList XtDeviceList
opaque device list handle
Definition: Shared.h:34
uint64_t XtError
Error type.
Definition: Shared.h:26
XtError XtServiceOpenDeviceList(XtService const *s, XtEnumFlags flags, XtDeviceList **list)
Enumerate available devices.
XtEnumFlags
Device enumeration flags.
Definition: Enums.h:8
Data structure types.
struct XtService XtService
opaque audio service handle
Definition: Shared.h:32
#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
XtServiceCaps XtServiceGetCapabilities(XtService const *s)
Get service capabilities.
struct XtDevice XtDevice
opaque audio device handle
Definition: Shared.h:30
Calling conventions and common data types.
XtError XtServiceOpenDevice(XtService const *s, char const *id, XtDevice **device)
Open an audio device.
Enumeration types.
XtError XtServiceAggregateStream(XtService const *s, XtAggregateStreamParams const *params, void *user, XtStream **stream)
Combines multiple audio devices into a single stream.