From e0f3ed26c5d41994badfdf097079430821445b48 Mon Sep 17 00:00:00 2001 From: Harvie Date: Sun, 22 Jan 2012 09:54:08 +0100 Subject: [PATCH] Debuging synth.c - straaaaaange. It's producing beeps with delays. Why??? --- c/ghetto-sound-system/synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2