diff options
author | Dan McGee <dpmcgee@gmail.com> | 2009-05-10 02:27:07 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2009-05-11 09:07:18 +0200 |
commit | 21d3717c3f0c1ed0dd2c976108a601a6c976e1b8 (patch) | |
tree | 9dbddabd7a61834806adcbbfa0d25036e42a0eff /speaker-test | |
parent | f0a3bdc88b2870492b3287990e55169356ff038d (diff) | |
download | alsa-utils-21d3717c3f0c1ed0dd2c976108a601a6c976e1b8.tar.gz |
Remove dead/commented out code
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Diffstat (limited to 'speaker-test')
-rw-r--r-- | speaker-test/speaker-test.c | 15 |
1 files changed, 0 insertions, 15 deletions
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<channels;chn++) { switch (format) { case SND_PCM_FORMAT_S8: @@ -195,11 +184,7 @@ static void generate_sine(uint8_t *frames, int channel, int count, double *_phas res = (sin((phase * 2 * M_PI) / max_phase - M_PI)) * 0.75 ; /* Don't use MAX volume */ fres = res; *samp_f++ = fres; - //*samp32++ = 0xF2345678; - //printf("res=%lf, ires=%d 0x%x, samp32=0x%x\n",res,ires, ires, samp32[-1]); } else { - //*samp32++ = ires+0x10000; - //*samp32++ = ires; *samp_f++ = 0.0; } break; |