From 2a5bc1ca7aee36cd763ac10c894b84eef347fe25 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 21 Nov 2024 14:08:02 -0500 Subject: Factor out "settings" that affect the execution process --- src/settings.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/settings.h (limited to 'src/settings.h') diff --git a/src/settings.h b/src/settings.h new file mode 100644 index 0000000..0cb548e --- /dev/null +++ b/src/settings.h @@ -0,0 +1,27 @@ +// Copyright 2018-2024 David Robillard +// SPDX-License-Identifier: ISC + +#ifndef JALV_SETTINGS_H +#define JALV_SETTINGS_H + +#include "attributes.h" + +#include +#include + +// Process thread settings +JALV_BEGIN_DECLS + +/// System and/or configuration settings for the execution process +typedef struct { + float sample_rate; ///< Sample rate + uint32_t block_length; ///< Audio buffer length in frames + size_t midi_buf_size; ///< MIDI buffer size in bytes + uint32_t ring_size; ///< Communication ring size in bytes + float ui_update_hz; ///< Frequency of UI updates + float ui_scale_factor; ///< UI scale factor +} JalvSettings; + +JALV_END_DECLS + +#endif // JALV_SETTINGS_H -- cgit v1.2.1