XT-Audio
XtStream.h
Go to the documentation of this file.
1 #ifndef XT_API_STREAM_H
2 #define XT_API_STREAM_H
3 
5 #include <xt/api/Shared.h>
6 #include <xt/api/Structs.h>
7 #include <stdint.h>
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 XT_API void XT_CALL
16 XT_API XtError XT_CALL
18 XT_API void XT_CALL
20 XT_API void* XT_CALL
21 XtStreamGetHandle(XtStream const* s);
22 XT_API XtBool XT_CALL
23 XtStreamIsRunning(XtStream const* s);
24 XT_API const XtFormat* XT_CALL
25 XtStreamGetFormat(XtStream const* s);
26 XT_API XtBool XT_CALL
28 XT_API XtError XT_CALL
29 XtStreamGetFrames(XtStream const* s, int32_t* frames);
30 XT_API XtError XT_CALL
31 XtStreamGetLatency(XtStream const* s, XtLatency* latency);
32 
33 #ifdef __cplusplus
34 }
35 #endif // __cplusplus
36 #endif // XT_API_STREAM_H
void XtStreamDestroy(XtStream *s)
Destroys an audio stream.
void XtStreamStop(XtStream *s)
Stops an audio stream.
Audio stream format.
Definition: Structs.h:65
uint64_t XtError
Error type.
Definition: Shared.h:26
XtBool XtStreamIsInterleaved(XtStream const *s)
Get stream interleaved mode.
XtError XtStreamGetFrames(XtStream const *s, int32_t *frames)
Get maximum stream buffer size.
Data structure types.
#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
Calling conventions and common data types.
XtBool XtStreamIsRunning(XtStream const *s)
Query stream state.
XtError XtStreamGetLatency(XtStream const *s, XtLatency *latency)
Get the end-to-end latency, if supported by the system.
const XtFormat * XtStreamGetFormat(XtStream const *s)
Get stream format.
XtError XtStreamStart(XtStream *s)
Starts an audio stream.
void * XtStreamGetHandle(XtStream const *s)
Implementation-defined handle to the backend stream.
Stream latency.
Definition: Structs.h:51