aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
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;
}