summaryrefslogtreecommitdiff
path: root/src/sink
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-12-14 11:13:38 -0500
committerAndrew Opalach <andrew@akon.city> 2024-12-14 11:13:38 -0500
commit692785bc9da6904cf17e986fb034730ed3d78231 (patch)
tree2f3359db61821adb06412b319600baf02ef1c2ee /src/sink
parentb91a978fcba8d0e938549172c68a07172d63b697 (diff)
downloadcamu-692785bc9da6904cf17e986fb034730ed3d78231.tar.gz
camu-692785bc9da6904cf17e986fb034730ed3d78231.tar.bz2
camu-692785bc9da6904cf17e986fb034730ed3d78231.zip
Work on pause and seek
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/sink')
-rw-r--r--src/sink/input_simulator.c6
1 files changed, 3 insertions, 3 deletions
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;
}
}