This commit is contained in:
Gerolf Ziegenhain 2016-10-04 17:21:24 +02:00
parent 9fdfc71ab3
commit 9be4962d53
1 changed files with 2 additions and 2 deletions

View File

@ -199,8 +199,8 @@ int beep(double freq_hz, double duration_sec)
i += 1; i += 1;
if (i<up_count) if (i<up_count)
{ {
buffer[j] = freq_hz*100.0 * sin(p1); buffer[j] = freq_hz*1000.0 * sin(p1);
buffer[j+1] = freq_hz*100.0 * sin(p2); buffer[j+1] = freq_hz*1000.0 * sin(p2);
p1 += f1; p1 += f1;
p2 += f2; p2 += f2;
} }