#9 Stop ICS Alarm from playing once per second

open-later
Felipe Bergo
None
5
2003-07-03
2003-03-07
No

When time is running out, the alarm is sounded once
every second, which is really obnoxious, IMHO. This
patch will cause it to be played only once (per game).
FYI, my particular config is to play sounds by running
esdplay, but from the code it looks like the behavior I
describe would happen with any sound config.

It's conceivable that someone might want more
flexibility, and I'd be happy to learn and play with
the dlg_prefs interface, but I thought I'd start out by
submitting something simple. It's a one line change in
LowTimeWarning() (line 191) of clock.cc.

Esekla

Discussion

  • Logged In: YES
    user_id=233095

    Changes were more complex than I orginally thought, though
    still fairly simple. Here are the modified files.

    Esekla

     
  •  
    Attachments
  • Felipe Bergo
    Felipe Bergo
    2003-07-03

    • assigned_to: nobody --> bergo
    • status: open --> open-later
     
  • Felipe Bergo
    Felipe Bergo
    2003-07-03

    Logged In: YES
    user_id=23863

    I'll do something configurable later.

     
  • Ales Dolecek
    Ales Dolecek
    2003-08-02

    Logged In: YES
    user_id=755695

    I don't consider this bug, but rather feature. Beeps at 1 s
    intervals sound like time ticking. More over when
    playingwith time increment you are "notified" that you are
    out of time crisis. If you wish something else you can play
    WAV/AU long enough. sox will detect that /dev/dsp is already
    in use and won't play the file second time. If you are using
    some pseudo device capable of simultaneous playback of more
    than one audio stream (software mixer) you could always
    write suitable script to "disallow" the 1 s repetition.

    Until there is some config option I would recommend leaving
    it AS-IS.