XT-Audio
XtPlatform.h
Go to the documentation of this file.
1 #ifndef XT_API_PLATFORM_H
2 #define XT_API_PLATFORM_H
3 
5 #include <xt/api/Enums.h>
6 #include <xt/api/Shared.h>
7 #include <stdint.h>
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 XT_API void XT_CALL
16 XT_API XtService const* XT_CALL
17 XtPlatformGetService(XtPlatform const* p, XtSystem system);
18 XT_API XtSystem XT_CALL
20 XT_API void XT_CALL
21 XtPlatformGetSystems(XtPlatform const* p, XtSystem* buffer, int32_t* size);
22 
23 #ifdef __cplusplus
24 }
25 #endif // __cplusplus
26 #endif // XT_API_PLATFORM_H
XtSetup
Platform-independent service setup.
Definition: Enums.h:4
struct XtPlatform XtPlatform
opaque platform handle
Definition: Shared.h:33
void XtPlatformDestroy(XtPlatform *p)
Terminates the XT-Audio library.
struct XtService XtService
opaque audio service handle
Definition: Shared.h:32
void XtPlatformGetSystems(XtPlatform const *p, XtSystem *buffer, int32_t *size)
Get available systems for the current platform.
#define XT_CALL
Calling convention.
XtService const * XtPlatformGetService(XtPlatform const *p, XtSystem system)
Get audio service corresponding to the given system.
Calling conventions and common data types.
Enumeration types.
XtSystem
Platform-specific service identifier.
Definition: Enums.h:7
XtSystem XtPlatformSetupToSystem(XtPlatform const *p, XtSetup setup)
Translate audio setup to corresponding system on the current platform.