1 extern float decwin
[512+32];
3 int synth_1to1(float *bandPtr
,int channel
,unsigned char *out
,int *pnt
)
5 static const int step
= 2;
6 short *samples
= (short *) (out
+*pnt
);
14 float *window
= decwin
+ 16 - bo1
;
15 for (j
=15;j
;j
--,b0
-=0x20,window
-=0x10,samples
+=step
)
18 sum
-= *(--window
) * *b0
++;
19 sum
-= *(--window
) * *b0
++;
20 sum
-= *(--window
) * *b0
++;
21 sum
-= *(--window
) * *b0
++;
22 sum
-= *(--window
) * *b0
++;
23 sum
-= *(--window
) * *b0
++;
24 sum
-= *(--window
) * *b0
++;
25 sum
-= *(--window
) * *b0
++;
27 if( ( sum
) > 32767.0) *( samples
) = 0x7fff; ( clip
)++; ;