* Scold them for their mistake.
*/
printf ("\n");
-#ifdef ERROR_VOLUME
-#ifndef ERROR_FREQ
-#define ERROR_FREQ 2000.
-#endif
- /* Beep using the tone generator */
- toneflush ();
- tone ((float) (ERROR_FREQ), .1, (float) (ERROR_VOLUME));
-#else
- /* Beep using control-G */
- printf ("\007");
-#endif
+
+ if (error_volume) {
+ /* Beep using the tone generator */
+ toneflush ();
+ tone (error_frequency, 0.1, error_volume);
+ } else
+ /* Beep using control-G */
+ printf ("\007");
printf ("%c (%s) for %c (%s)\n",
yourchar, code[yourcharnocase],
correctchar, code[correctchar]);