Loading...
Searching...
No Matches
AudioTick.hpp
1#pragma once
2#include <Process/ExecutionAction.hpp>
3
4#include <score/application/ApplicationContext.hpp>
5
6#include <ossia/audio/audio_engine.hpp>
7#include <ossia/audio/audio_tick.hpp>
8
9#include <score_plugin_audio_export.h>
10
11namespace Audio
12{
13using tick_fun = ossia::audio_engine::fun_type;
14
15SCORE_PLUGIN_AUDIO_EXPORT
16tick_fun makePauseTick(const score::ApplicationContext& app);
17
18SCORE_PLUGIN_AUDIO_EXPORT
19extern std::atomic<ossia::transport_status> execution_status;
20
21// Monotonic sample counter incremented by the play tick, reset on stop.
22// Used by video input devices for audio-clock-referenced frame pacing.
23SCORE_PLUGIN_AUDIO_EXPORT
24extern std::atomic<int64_t> execution_samples;
25
26// Audio sample rate during execution (set once at play, stable during playback).
27SCORE_PLUGIN_AUDIO_EXPORT
28extern std::atomic<int> execution_sample_rate;
29}
Used to access all the application-wide state and structures.
Definition ApplicationContext.hpp:25