OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
audio_tick.hpp
1#pragma once
2#include <cinttypes>
3#include <optional>
4namespace ossia
5{
6enum transport_mode
7{
8 none,
9 client,
10 master
11};
12
13enum transport_status
14{
15 stopped,
16 starting,
17 playing
18};
19
20struct audio_tick_state
21{
22 // Audio samples. Array of arrays pointing to individual channels
23 float* const* inputs{};
24 float** outputs{};
25
26 // Number of input and output channels
27 int32_t n_in{};
28 int32_t n_out{};
29
30 // Number of frames to playback
31 uint64_t frames{};
32
33 // Absolute transport position in seconds
34 double seconds{};
35
36 // Absolute transport position in frames
37 std::optional<uint64_t> position_in_frames{};
38
39 // Current transport status
40 std::optional<transport_status> status{};
41};
42}
Definition git_info.h:7