XT-Audio
XtAudio.h
Go to the documentation of this file.
1 #ifndef XT_API_AUDIO_H
2 #define XT_API_AUDIO_H
3 
5 #include <xt/api/Enums.h>
6 #include <xt/api/Shared.h>
7 #include <xt/api/Structs.h>
8 #include <xt/api/Callbacks.h>
9 #include <stdint.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 XT_API XtVersion XT_CALL
17 XtAudioGetVersion(void);
18 XT_API char const* XT_CALL
20 XT_API XtErrorInfo XT_CALL
22 XT_API void XT_CALL
24 XT_API XtPlatform* XT_CALL
25 XtAudioInit(char const* id, void* window);
26 XT_API XtAttributes XT_CALL
28 XT_API void XT_CALL
30 
31 #ifdef __cplusplus
32 }
33 #endif // __cplusplus
34 #endif // XT_API_AUDIO_H
XtVersion XtAudioGetVersion(void)
Get XT-Audio library version.
XtSample
Audio sample format.
Definition: Enums.h:5
struct XtPlatform XtPlatform
opaque platform handle
Definition: Shared.h:33
uint64_t XtError
Error type.
Definition: Shared.h:26
XT-Audio library version information.
Definition: Structs.h:45
XtPlatform * XtAudioInit(char const *id, void *window)
Initialize the XT-Audio library.
void XtAudioSetOnError(XtOnError onError)
Set error logging callback.
char const * XtAudioGetLastAssert(void)
Indicates last internal assertion failure, if any.
Data structure types.
void(XT_CALLBACK * XtOnError)(char const *message)
Error logging callback.
Definition: Callbacks.h:14
#define XT_CALL
Calling convention.
Sample type attributes.
Definition: Structs.h:91
int32_t XtBool
Boolean type.
Definition: Shared.h:25
Calling conventions and common data types.
void XtAudioSetAssertTerminates(XtBool terminates)
Indicates whether internal assertion failures should result in std::terminate (true) or be handled by...
Useful error details derived from XtError opaque error code.
Definition: Structs.h:77
XtAttributes XtAudioGetSampleAttributes(XtSample sample)
Get sample attributes for a specific sample type.
Enumeration types.
Callback function types.
XtErrorInfo XtAudioGetErrorInfo(XtError error)
Translate opaque error code to error details.