Replay audio challenges after the correct answer is shown
authorCarl Worth <cworth@cworth.org>
Mon, 30 Mar 2009 01:13:37 +0000 (18:13 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 30 Mar 2009 01:13:37 +0000 (18:13 -0700)
This is necessary reinforcement, since unlike the other challenge types,
the original channel is no longer observable when the correct answer
is displayed.

mnemon.c

index 87e1fd08b6530089cca9d12270405d0b1569d1c7..054e21cb59494210f1eccfb6b236482beb6ca92f 100644 (file)
--- a/mnemon.c
+++ b/mnemon.c
@@ -1289,6 +1289,13 @@ mnemon_do_challenges (mnemon_t *mnemon)
                                (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);