On Thursday 09 of March 2006 14:49 Prashant Batra wrote:
> bP = (UInt16 *) buffer; > tvar[j] = bP[ib] + bP[ib+1]; This approach is inccorect and you technically simply "overload the result". Example (on byte, for simpicity): if A,B,C are bytes and A=200 and B=200 then the A+B will never "fit" a byte. In this case C will result in 400 % 256 = 144. What you should do is rather to normalize the result soundwave prior storing it. Regards, -- "Daddy, what "Formatting drive C:" means?"... Marcin http://wfmh.org.pl/carlos/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
