#606409 "beep -l 0" shouldn't make any sound

Package:
beep
Source:
beep
Description:
advanced PC-speaker beeper
Submitter:
Date:
2010-12-08 23:54:04 UTC
Severity:
wishlist
#606409#5
Date:
2010-12-08 06:26:59 UTC
From:
To:
Strictly speaking,
while :; do beep  -l 0; done
shouldn't make any sound. But it does.

Same when -r is used.

#606409#10
Date:
2010-12-08 23:29:11 UTC
From:
To:
tags 606409 + confirmed
retitle 606409 "beep -l 0" shouldn't make any sound
kthxbye

jidanni@jidanni.org wrote:

Confirmed.

Without having looked at the code I'd expect something like

makesound();
sleep(<value of -l>);
stopsound();

So maybe just the manpage needs an update and change from

       -l N   beep for N milliseconds.

to something like

       -l N   beep and stop the sound again after N milliseconds.

At least "while :; do beep -l 1 -r 0; done" does make no sound as
at least I expect.

But "beep -l 0 -r 100" makes some sound but very quietly.

		Regards, Axel

#606409#19
Date:
2010-12-08 23:51:10 UTC
From:
To:
AB> So maybe just the manpage needs an update and change from

AB>        -l N   beep for N milliseconds.

AB> to something like

AB>        -l N   beep and stop the sound again after N milliseconds.

Or maybe
          -l N   beep for N milliseconds. (Actually ...., which is why
          while : .... will still make a sound)