aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-17 08:20:17 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:04:07 -0500
commit660d0e3591e6a972f5d4adfd7d0d3bf6cef566f9 (patch)
tree046c2c571efb23cc24fbe90dd885c44dd0b52743 /src/jalv.c
parent06bd42a00bd86f5d487727ff8f08797f9286b27f (diff)
downloadjalv-660d0e3591e6a972f5d4adfd7d0d3bf6cef566f9.tar.gz
jalv-660d0e3591e6a972f5d4adfd7d0d3bf6cef566f9.tar.bz2
jalv-660d0e3591e6a972f5d4adfd7d0d3bf6cef566f9.zip
Use message mechanism to pause plugin execution
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c4
1 files changed, 2 insertions, 2 deletions
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;
}