This commit is contained in:
Gerolf Ziegenhain 2016-10-04 17:31:03 +02:00
parent 43ac116425
commit 13a1af9ed4

View File

@ -191,7 +191,7 @@ int beep(double freq_hz, double duration_sec)
int up_count = (int)(SAMPLE_RATE * duration_sec); int up_count = (int)(SAMPLE_RATE * duration_sec);
p1 = p2 = f1 = f2 = 0.05;//SAMPLE_RATE/freq_hz;//0.02; p1 = p2 = f1 = f2 = 0.09;//SAMPLE_RATE/freq_hz;//0.02;
for (i = 0; i < up_count; ) { for (i = 0; i < up_count; ) {
for (j = 0; j < FRAMES*2 ; j+=2) for (j = 0; j < FRAMES*2 ; j+=2)
//for (j = 0; j < up_count*2; j+=2) //for (j = 0; j < up_count*2; j+=2)