From 457a3cc1a04e45e31370d9083186436b0d12ab1d Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 27 Jan 2025 21:56:39 -0500 Subject: Refactor threaded waits - Move seek to handler thread. - Cleanup and comment some stuff. Signed-off-by: Andrew Opalach --- src/sink/input_simulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sink') diff --git a/src/sink/input_simulator.c b/src/sink/input_simulator.c index baa7dc8..9cf395f 100644 --- a/src/sink/input_simulator.c +++ b/src/sink/input_simulator.c @@ -39,8 +39,8 @@ static nn_thread_result NNWT_THREADCALL input_simulation_thread(void *userdata) case SEEK: { f64 pos = al_rand() / (f64)AL_RAND_MAX; if (pos < 0.005) pos = 0.0; - if (pos > 0.995) pos = 100.0; - else if (pos > 0.99) pos = 99.9; + if (pos > 0.995) pos = 1.0; + else if (pos > 0.99) pos = .9999; camu_sink_seek(sink, pos); break; } -- cgit v1.2.3-101-g0448