This commit is contained in:
Gerolf Ziegenhain 2016-10-04 17:00:43 +02:00
parent 96c1a5c030
commit 9dd1055495
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ int beep(double freq_hz, double duration_sec)
unsigned int i,j; unsigned int i,j;
snd_pcm_sframes_t frames; snd_pcm_sframes_t frames;
int up_count = SAMPLE_RATE * msecs / 1000; int up_count = (int)(SAMPLE_RATE * duration_sec);
f1 = 0.02; f1 = 0.02;