Changeset 383:56f41c54f169 in roaraudio for libroardsp/poly.c


Ignore:
Timestamp:
08/06/08 04:03:43 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added working 16 bit mono resampling code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/poly.c

    r49 r383  
    7272} 
    7373 
     74 
     75float roar_math_cvpoly_4x4 (float * poly, float t) { 
     76 float ret = poly[0]; 
     77 float ct  = t; 
     78 
     79 ret += poly[1] * ct; 
     80 ct  *= t; 
     81 ret += poly[2] * ct; 
     82 ct  *= t; 
     83 ret += poly[3] * ct; 
     84 
     85// printf("ret=%f\n", ret); 
     86 
     87 return ret; 
     88} 
     89 
    7490//ll 
Note: See TracChangeset for help on using the changeset viewer.