const char *arg;
int len;
switch (command[0]) {
+ /* 'h' for histogram */
case 'h':
{
char *category = NULL;
mnemon_print_histogram (mnemon, category, length);
}
break;
+ /* 'r' for repeat */
+ case 'r':
+ {
+ /* Nothing necessary for repeating. */
+ }
+ break;
default:
printf ("Unknown command: %s\n", command);
break;
(start.tv_sec + start.tv_usec / 1e6),
category->time_limit);
free (response);
+
+ /* Replay audio challenges for reinforcement. */
+ if (category->challenge_type == CHALLENGE_TYPE_AUDIO) {
+ mnemon_show_challenge (mnemon, category->challenge_type,
+ item->challenge);
+ sleep (1);
+ }
} while (mnemon->to_introduce ||
mnemon->unlearned ||
mnemon->to_master > 0);