1 #ifndef XT_API_STRUCTS_HPP
2 #define XT_API_STRUCTS_HPP
71 rate(rate), sample(sample) {}
81 Channels(int32_t inputs, uint64_t inMask, int32_t outputs, uint64_t outMask):
82 inputs(inputs), inMask(inMask), outputs(outputs), outMask(outMask) {}
91 mix(mix), channels(channels) {}
102 interleaved(interleaved), onBuffer(onBuffer), onXRun(onXRun), onRunning(onRunning) {}
112 stream(stream), format(format), bufferSize(bufferSize) {}
122 device(device), channels(channels), bufferSize(bufferSize) {}
134 stream(stream), devices(devices), count(count), mix(mix), master(master) {}
138 #endif // XT_API_STRUCTS_HPP
ServiceError service
Definition: Structs.hpp:47
std::string text
Definition: Structs.hpp:40
Mix mix
Definition: Structs.hpp:130
Definition: Structs.hpp:125
Cause cause
Definition: Structs.hpp:39
Mix(int32_t rate, Sample sample)
Definition: Structs.hpp:70
Definition: Structs.hpp:31
double current
Definition: Structs.hpp:54
DeviceStreamParams()=default
AggregateStreamParams(StreamParams const &stream, AggregateDeviceParams *devices, int32_t count, Mix const &mix, Device const *master)
Definition: Structs.hpp:133
Cause
Definition: Enums.hpp:10
int32_t outputs
Definition: Structs.hpp:78
int32_t major
Definition: Structs.hpp:33
Definition: Structs.hpp:15
uint32_t(* OnBuffer)(class Stream const &stream, struct Buffer const &buffer, void *user)
Definition: Callbacks.hpp:17
bool timeValid
Definition: Structs.hpp:22
void const * input
Definition: Structs.hpp:17
class Device * device
Definition: Structs.hpp:117
System system
Definition: Structs.hpp:46
int32_t size
Definition: Structs.hpp:59
Definition: Structs.hpp:25
Definition: Structs.hpp:50
Channels channels
Definition: Structs.hpp:118
void(* OnXRun)(class Stream const &stream, int32_t index, void *user)
Definition: Callbacks.hpp:15
Format format
Definition: Structs.hpp:108
int32_t minor
Definition: Structs.hpp:34
StreamParams stream
Definition: Structs.hpp:127
Definition: Structs.hpp:57
Definition: Structs.hpp:105
void(* OnRunning)(class Stream const &stream, bool running, uint64_t error, void *user)
Definition: Callbacks.hpp:19
AggregateDeviceParams * devices
Definition: Structs.hpp:128
OnXRun onXRun
Definition: Structs.hpp:98
int32_t count
Definition: Structs.hpp:60
double bufferSize
Definition: Structs.hpp:119
int32_t inputs
Definition: Structs.hpp:76
double input
Definition: Structs.hpp:27
Definition: Structs.hpp:74
AggregateDeviceParams()=default
Channels(int32_t inputs, uint64_t inMask, int32_t outputs, uint64_t outMask)
Definition: Structs.hpp:81
int32_t frames
Definition: Structs.hpp:21
AggregateDeviceParams(class Device *device, Channels const &channels, double bufferSize)
Definition: Structs.hpp:121
bool isSigned
Definition: Structs.hpp:62
uint64_t position
Definition: Structs.hpp:20
AggregateStreamParams()=default
OnBuffer onBuffer
Definition: Structs.hpp:97
int32_t rate
Definition: Structs.hpp:67
uint64_t outMask
Definition: Structs.hpp:79
int32_t count
Definition: Structs.hpp:129
Sample sample
Definition: Structs.hpp:68
bool isFloat
Definition: Structs.hpp:61
StreamParams(bool interleaved, OnBuffer onBuffer, OnXRun onXRun, OnRunning onRunning)
Definition: Structs.hpp:101
double time
Definition: Structs.hpp:19
StreamParams stream
Definition: Structs.hpp:107
Definition: Structs.hpp:43
bool interleaved
Definition: Structs.hpp:96
Definition: Structs.hpp:37
Device const * master
Definition: Structs.hpp:131
void * output
Definition: Structs.hpp:18
double bufferSize
Definition: Structs.hpp:109
Definition: Callbacks.hpp:10
Sample
Definition: Enums.hpp:9
System
Definition: Enums.hpp:11
OnRunning onRunning
Definition: Structs.hpp:99
DeviceStreamParams(StreamParams const &stream, Format const &format, double bufferSize)
Definition: Structs.hpp:111
uint32_t fault
Definition: Structs.hpp:45
double max
Definition: Structs.hpp:53
Definition: Structs.hpp:115
Definition: XtDevice.hpp:20
double output
Definition: Structs.hpp:28
Definition: Structs.hpp:94
uint64_t inMask
Definition: Structs.hpp:77
double min
Definition: Structs.hpp:52
Definition: Structs.hpp:65