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 --- examples/panning.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/panning.c') diff --git a/examples/panning.c b/examples/panning.c index 7ee9a76..485833a 100644 --- a/examples/panning.c +++ b/examples/panning.c @@ -30,10 +30,10 @@ int main() int chan = mossrose_play(&sound, -1); - for (int i=0; i<800; i++) { - float time = ((float)i)/100; + for (int i=0; i<8000; i++) { + float time = ((float)i)/1000; mossrose_channel_set_pan(chan, cos(2*PI*time), 0); - Pa_Sleep(10); + Pa_Sleep(1); } mossrose_terminate(); -- cgit v1.2.1