summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-09-03 18:17:53 -0500
committersanine <sanine.not@pm.me>2022-09-03 18:17:53 -0500
commita416cfb6881b8ff99c29ba87c1d940d6143e44b1 (patch)
treea6fc26bed9f1efb34f19d8709569dc40d17366a2 /examples
parentd3ffd2e969b078a04fea2a5a5eb9cc7f26963917 (diff)
only perform atomic operations at the beginning of a callback run
Diffstat (limited to 'examples')
-rw-r--r--examples/panning.c6
1 files changed, 3 insertions, 3 deletions
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();