The persistent integer option -analysisBell can be used to let the
move sound play in analysis mode for every PV that arrives after the
dely (in seconds) it specifies has elapsed since the current analysis
search started.
{ "messageSuppress", ArgString, (void *) &appData.suppress, XBOARD, (ArgIniType) "" },
{ "fen", ArgString, (void *) &appData.fen, FALSE, (ArgIniType) "" },
{ "men", ArgString, (void *) &appData.men, FALSE, (ArgIniType) "" },
{ "messageSuppress", ArgString, (void *) &appData.suppress, XBOARD, (ArgIniType) "" },
{ "fen", ArgString, (void *) &appData.fen, FALSE, (ArgIniType) "" },
{ "men", ArgString, (void *) &appData.men, FALSE, (ArgIniType) "" },
+ { "analysisBell", ArgInt, (void *) &appData.analysisBell, TRUE, (ArgIniType) 0 },
#if ZIPPY
{ "zippyTalk", ArgBoolean, (void *) &appData.zippyTalk, FALSE, (ArgIniType) ZIPPY_TALK },
#if ZIPPY
{ "zippyTalk", ArgBoolean, (void *) &appData.zippyTalk, FALSE, (ArgIniType) ZIPPY_TALK },
if(stats.pv && stats.pv[0]) safeStrCpy(lastPV[stats.which], stats.pv, sizeof(lastPV[stats.which])/sizeof(lastPV[stats.which][0])); // [HGM] pv: remember last PV of each
if(stats.pv && stats.pv[0]) safeStrCpy(lastPV[stats.which], stats.pv, sizeof(lastPV[stats.which])/sizeof(lastPV[stats.which][0])); // [HGM] pv: remember last PV of each
+ if( gameMode == AnalyzeMode && stats.pv && stats.pv[0]
+ && appData.analysisBell && stats.time >= 100*appData.analysisBell ) RingBell();
+
SetProgramStats( &stats );
}
SetProgramStats( &stats );
}
char *historyFont;
char *gameListFont;
char *icsFont;
char *historyFont;
char *gameListFont;
char *icsFont;
Boolean ringBellAfterMoves;
Boolean autoCallFlag;
Boolean flipView;
Boolean ringBellAfterMoves;
Boolean autoCallFlag;
Boolean flipView;
Sets the Move Sound menu option. @xref{Options Menu}. Default: false.
For compatibility with old XBoard versions, -bell/-xbell are also
accepted as abbreviations for this option.
Sets the Move Sound menu option. @xref{Options Menu}. Default: false.
For compatibility with old XBoard versions, -bell/-xbell are also
accepted as abbreviations for this option.
+@item -analysisBell N
+@cindex analysisBell, option
+When N is non-zero, the Move Sound will be played whenever a new
+PV arrives in analysis mode after more than N seconds of analysis.
+Default: 0.
@item -exit/-xexit or -popupExitMessage true/false
@cindex exit, option
@cindex popupExitMessage, option
@item -exit/-xexit or -popupExitMessage true/false
@cindex exit, option
@cindex popupExitMessage, option