XT-Audio
Callbacks.hpp
Go to the documentation of this file.
1 #ifndef XT_API_CALLBACKS_HPP
2 #define XT_API_CALLBACKS_HPP
3 
6 #include <string>
7 #include <cstdint>
10 namespace Xt {
11 
12 typedef void (*
13 OnError)(std::string const& message);
14 typedef void (*
15 OnXRun)(class Stream const& stream, int32_t index, void* user);
16 typedef uint32_t (*
17 OnBuffer)(class Stream const& stream, struct Buffer const& buffer, void* user);
18 typedef void (*
19 OnRunning)(class Stream const& stream, bool running, uint64_t error, void* user);
20 
21 } // namespace Xt
22 #endif // XT_API_CALLBACKS_HPP
Definition: Structs.hpp:15
uint32_t(* OnBuffer)(class Stream const &stream, struct Buffer const &buffer, void *user)
Definition: Callbacks.hpp:17
void(* OnXRun)(class Stream const &stream, int32_t index, void *user)
Definition: Callbacks.hpp:15
void(* OnRunning)(class Stream const &stream, bool running, uint64_t error, void *user)
Definition: Callbacks.hpp:19
void(* OnError)(std::string const &message)
Definition: Callbacks.hpp:13
Definition: Callbacks.hpp:10
Definition: XtStream.hpp:18