diff options
author | David Robillard <d@drobilla.net> | 2024-11-21 18:13:50 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:11:53 -0500 |
commit | 15324bd2bb040f9dc62769b9355bb31b57a9ae0e (patch) | |
tree | 1fa0bb4a068f972a2909f3488bd3a40d8a1d95cf /src/process_setup.h | |
parent | 2a5bc1ca7aee36cd763ac10c894b84eef347fe25 (diff) | |
download | jalv-15324bd2bb040f9dc62769b9355bb31b57a9ae0e.tar.gz jalv-15324bd2bb040f9dc62769b9355bb31b57a9ae0e.tar.bz2 jalv-15324bd2bb040f9dc62769b9355bb31b57a9ae0e.zip |
Move process thread setup code to a separate file
Towards more cleanly separating the audio thread code from the rest of the
application.
Diffstat (limited to 'src/process_setup.h')
-rw-r--r-- | src/process_setup.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/process_setup.h b/src/process_setup.h new file mode 100644 index 0000000..07a76c2 --- /dev/null +++ b/src/process_setup.h @@ -0,0 +1,23 @@ +// Copyright 2016-2024 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC + +#ifndef JALV_PROCESS_SETUP_H +#define JALV_PROCESS_SETUP_H + +#include "attributes.h" +#include "types.h" + +// Code for setting up the realtime process thread (but that isn't used in it) +JALV_BEGIN_DECLS + +/// Allocate appropriately-sized port buffers and connect the plugin to them +void +jalv_allocate_port_buffers(Jalv* jalv); + +/// Clean up memory allocated by jalv_process_activate() and disconnect plugin +void +jalv_free_port_buffers(Jalv* jalv); + +JALV_END_DECLS + +#endif // JALV_PROCESS_SETUP_H |