Changeset 4113:db143e08f4e8 in roaraudio
- Timestamp:
- 08/06/10 16:48:21 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/convert.c
r4112 r4113 1205 1205 int16_t *ip; 1206 1206 int c, x; 1207 float pos_in; 1208 float poly[3]; 1209 float y[3]; 1210 float x_val; 1207 1211 1208 1212 /* Can't create poly out of less than 3 samples in each channel. */ … … 1218 1222 for ( x = 0; x < olen/channels; x++ ) { 1219 1223 for ( c = 0; c < channels; c++ ) { 1220 float pos_out; 1221 float pos_in; 1222 1223 float poly[3]; 1224 float y[3]; 1225 float x_val; 1226 1227 pos_out = x; 1228 pos_in = pos_out / ratio; 1224 pos_in = (float)x / ratio; 1229 1225 1230 1226 if ( (int)pos_in == 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.