From 692785bc9da6904cf17e986fb034730ed3d78231 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 14 Dec 2024 11:13:38 -0500 Subject: Work on pause and seek Signed-off-by: Andrew Opalach --- src/sink/input_simulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sink') diff --git a/src/sink/input_simulator.c b/src/sink/input_simulator.c index 92e3936..af0105d 100644 --- a/src/sink/input_simulator.c +++ b/src/sink/input_simulator.c @@ -10,12 +10,12 @@ static s32 quit = 1; static struct aki_thread thread; enum { - SKIP = 0, + SKIP, BACKSKIP, SHUFFLE, - MARK, // count TOGGLE_PAUSE, SEEK, + MARK, // count }; static aki_thread_result AKI_THREADCALL input_simulation_thread(void *userdata) @@ -37,7 +37,7 @@ static aki_thread_result AKI_THREADCALL input_simulation_thread(void *userdata) camu_sink_toggle_pause(sink); break; case SEEK: - camu_sink_seek(sink, 0.0); + camu_sink_seek(sink, al_rand() / (f64)AL_RAND_MAX); break; } } -- cgit v1.2.3-101-g0448