From 5881e8438197b71f88f9c9d80cc9b0067f1fee58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Nov 2024 13:15:59 -0500 Subject: Use a typedef for port flow and type like other enums --- src/jack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jack.c') diff --git a/src/jack.c b/src/jack.c index 6baa14e..de1542e 100644 --- a/src/jack.c +++ b/src/jack.c @@ -260,8 +260,8 @@ jack_process_cb(jack_nframes_t nframes, void* data) static void jack_latency_cb(const jack_latency_callback_mode_t mode, void* const data) { - const Jalv* const jalv = (const Jalv*)data; - const enum PortFlow flow = + const Jalv* const jalv = (const Jalv*)data; + const PortFlow flow = ((mode == JackCaptureLatency) ? FLOW_INPUT : FLOW_OUTPUT); // First calculate the min/max latency of all feeding ports -- cgit v1.2.1