XT-Audio
Callbacks.h
Go to the documentation of this file.
1 #ifndef XT_API_CALLBACKS_H
2 #define XT_API_CALLBACKS_H
3 
5 #include <xt/api/Shared.h>
6 #include <stdint.h>
10 typedef struct XtBuffer XtBuffer;
13 typedef void (XT_CALLBACK
14 *XtOnError)(char const* message);
15 typedef void (XT_CALLBACK
16 *XtOnXRun)(XtStream const* stream, int32_t index, void* user);
17 typedef uint32_t (XT_CALLBACK
18 *XtOnBuffer)(XtStream const* stream, XtBuffer const* buffer, void* user);
19 typedef void (XT_CALLBACK
20 *XtOnRunning)(XtStream const* stream, XtBool running, XtError error, void* user);
21 
22 #endif // XT_API_CALLBACKS_H
void(XT_CALLBACK * XtOnXRun)(XtStream const *stream, int32_t index, void *user)
Audio xrun (underrun/overrun) callback.
Definition: Callbacks.h:16
Streaming audio buffer.
Definition: Structs.h:35
uint64_t XtError
Error type.
Definition: Shared.h:26
void(XT_CALLBACK * XtOnError)(char const *message)
Error logging callback.
Definition: Callbacks.h:14
struct XtStream XtStream
opaque audio stream handle
Definition: Shared.h:31
int32_t XtBool
Boolean type.
Definition: Shared.h:25
uint32_t(XT_CALLBACK * XtOnBuffer)(XtStream const *stream, XtBuffer const *buffer, void *user)
Audio stream processing callback.
Definition: Callbacks.h:18
Calling conventions and common data types.
void(XT_CALLBACK * XtOnRunning)(XtStream const *stream, XtBool running, XtError error, void *user)
Audio stream state changed callback.
Definition: Callbacks.h:20
#define XT_CALLBACK
Calling convention.