From: Harvie Date: Sun, 22 Jan 2012 08:54:08 +0000 (+0100) Subject: Debuging synth.c - straaaaaange. It's producing beeps with delays. Why??? X-Git-Url: http://git.harvie.cz/?a=commitdiff_plain;h=e0f3ed26c5d41994badfdf097079430821445b48;p=mirrors%2FPrograms.git Debuging synth.c - straaaaaange. It's producing beeps with delays. Why??? --- diff --git a/c/ghetto-sound-system/synth.c b/c/ghetto-sound-system/synth.c index b67ad35..22bf505 100644 --- a/c/ghetto-sound-system/synth.c +++ b/c/ghetto-sound-system/synth.c @@ -17,7 +17,7 @@ void my_audio_callback(void *userdata, Uint8 *stream, int len) { int sampl_freq = desired->freq; sampl_freq = 44100; - double sine_freq = 50; + double sine_freq = 11025; static double i,j; // = 0; short int *u; u = (short int *)stream;