This commit is contained in:
Gerolf Ziegenhain 2016-10-04 17:56:07 +02:00
parent 57f6c84f88
commit a9371e16d4

View File

@ -182,9 +182,10 @@ snd_output_t *output = NULL;
int beep(double freq_hz, double duration_sec)
{
if (freq_hz <= 0.)
if (freq_hz <= 0.0)
{
msleep(duration_sec*1000.);
printf (" no tone ");
return 0;
}
double p1,p2,f1,f2;