diff options
| author | 2025-01-27 21:56:39 -0500 | |
|---|---|---|
| committer | 2025-01-27 21:56:39 -0500 | |
| commit | 457a3cc1a04e45e31370d9083186436b0d12ab1d (patch) | |
| tree | 7ffb9d676edd4a1b88e8f1020dd905efcfe6b83a /src/sink | |
| parent | f760ecedb619a55ec8ee989639ac385f27e82d98 (diff) | |
| download | camu-457a3cc1a04e45e31370d9083186436b0d12ab1d.tar.gz camu-457a3cc1a04e45e31370d9083186436b0d12ab1d.tar.bz2 camu-457a3cc1a04e45e31370d9083186436b0d12ab1d.zip | |
Refactor threaded waits
- Move seek to handler thread.
- Cleanup and comment some stuff.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/sink')
| -rw-r--r-- | src/sink/input_simulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |