aboutsummaryrefslogtreecommitdiffstats
path: root/src/backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend.h')
-rw-r--r--src/backend.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/backend.h b/src/backend.h
index fe2fdf3..9cb6508 100644
--- a/src/backend.h
+++ b/src/backend.h
@@ -12,9 +12,21 @@
// Interface that must be implemented by audio/MIDI backends
JALV_BEGIN_DECLS
-/// Initialize the audio and MIDI systems
+/// Allocate a new uninitialized backend
JalvBackend*
-jalv_backend_init(Jalv* jalv);
+jalv_backend_allocate(void);
+
+/// Free a backend allocated with jalv_backend_allocate()
+void
+jalv_backend_free(JalvBackend* backend);
+
+/// Open the audio/MIDI system
+int
+jalv_backend_open(Jalv* jalv);
+
+/// Close the audio/MIDI system
+void
+jalv_backend_close(Jalv* jalv);
/// Activate the backend and start processing audio
void
@@ -24,10 +36,6 @@ jalv_backend_activate(Jalv* jalv);
void
jalv_backend_deactivate(Jalv* jalv);
-/// Close the backend
-void
-jalv_backend_close(Jalv* jalv);
-
/// Expose a port to the system (if applicable) and connect it to its buffer
void
jalv_backend_activate_port(Jalv* jalv, uint32_t port_index);