master
Gerolf Ziegenhain 7 years ago
parent bd54a9cec4
commit 1c1ef6ca4d

@ -188,7 +188,7 @@ int beep(double freq_hz, double duration_sec)
unsigned int i,j;
snd_pcm_sframes_t frames;
unsigned int up_count = (int)(SAMPLE_RATE * duration_sec);
unsigned int up_count = (unsigned int)(SAMPLE_RATE*1.0 * duration_sec);
p1 = p2 = f1 = f2 = 0.02;//SAMPLE_RATE/freq_hz;//0.02;

Loading…
Cancel
Save