From 660d0e3591e6a972f5d4adfd7d0d3bf6cef566f9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Nov 2024 08:20:17 -0500 Subject: Use message mechanism to pause plugin execution --- src/jalv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jalv.c') diff --git a/src/jalv.c b/src/jalv.c index 10dd8e8..5243d32 100644 --- a/src/jalv.c +++ b/src/jalv.c @@ -924,7 +924,7 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv) jalv->block_length = 4096U; jalv->midi_buf_size = 1024U; jalv->msg_buf_size = 1024U; - jalv->play_state = JALV_PAUSED; + jalv->run_state = JALV_PAUSED; jalv->bpm = 120.0f; jalv->control_in = UINT32_MAX; jalv->log.urids = &jalv->urids; @@ -1187,8 +1187,8 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv) jalv->has_ui = jalv_frontend_discover(jalv); // Activate audio backend + jalv->run_state = JALV_RUNNING; jalv_backend_activate(jalv); - jalv->play_state = JALV_RUNNING; return 0; } -- cgit v1.2.1