From: Dan McGee Date: Sun, 10 May 2009 00:27:07 +0000 (+0200) Subject: Remove dead/commented out code X-Git-Tag: v1.0.21~17 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=21d3717c3f0c1ed0dd2c976108a601a6c976e1b8;p=alsa-utils.git Remove dead/commented out code Signed-off-by: Dan McGee --- diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c index 38e5462..d983a4f 100644 --- a/speaker-test/speaker-test.c +++ b/speaker-test/speaker-test.c @@ -142,17 +142,6 @@ static void generate_sine(uint8_t *frames, int channel, int count, double *_phas float *samp_f = (float*) frames; while (count-- > 0) { - //res = sin((phase * 2 * M_PI) / max_phase - M_PI) * 32767; - //res = sin((phase * 2 * M_PI) / max_phase - M_PI) * 32767; - //res = (sin((phase * 2 * M_PI) / max_phase - M_PI)) * 0x03fffffff; /* Don't use MAX volume */ - //if (res > 0) res = 10000; - //if (res < 0) res = -10000; - - /* printf("%e\n",res); */ - //ires = res; - //ires = ((16 - (count & 0xf)) <<24); - //ires = 0; - for(chn=0;chn