summaryrefslogtreecommitdiff
path: root/src/libsink/input_simulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsink/input_simulator.c')
-rw-r--r--src/libsink/input_simulator.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libsink/input_simulator.c b/src/libsink/input_simulator.c
index 5b9d6e6..883e631 100644
--- a/src/libsink/input_simulator.c
+++ b/src/libsink/input_simulator.c
@@ -7,7 +7,7 @@
#include "input_simulator.h"
-// This is ignoring all thread-safety.
+// Currently ignoring all thread-safety.
static s32 quit = 1;
static struct nn_thread thread;
@@ -17,7 +17,8 @@ enum {
TOGGLE_PAUSE,
SEEK,
SHUFFLE,
- MARK, // count
+ COUNT,
+ RESEEK
};
static nn_thread_result NNWT_THREADCALL input_simulation_thread(void *userdata)
@@ -28,7 +29,7 @@ static nn_thread_result NNWT_THREADCALL input_simulation_thread(void *userdata)
//nn_thread_sleep(NNWT_TS_FROM_USEC(2000000 + al_random_int(0, 1750000)));
//nn_thread_sleep(NNWT_TS_FROM_USEC(60000));
nn_thread_sleep(NNWT_TS_FROM_USEC(30000));
- switch (al_random_int(0, MARK - 1)) {
+ switch (al_random_int(0, COUNT - 1)) {
case SKIP: {
s32 n = al_random_int(1, 5);
log_info("SKIP (n: %d).", n);