From a416cfb6881b8ff99c29ba87c1d940d6143e44b1 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 3 Sep 2022 18:17:53 -0500 Subject: only perform atomic operations at the beginning of a callback run --- src/mossrose.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mossrose.c') diff --git a/src/mossrose.c b/src/mossrose.c index fb017cd..04770f5 100644 --- a/src/mossrose.c +++ b/src/mossrose.c @@ -21,9 +21,13 @@ static int callback( PaStreamCallbackFlags status_flags, void *user_data) { + printf("frame count: %d\n", frame_count); float *out = output; float *left, *right; float l, r; + + for (int i=0; i