Changeset 4113:db143e08f4e8 in roaraudio


Ignore:
Timestamp:
08/06/10 16:48:21 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

move vars decls. to where they should be

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/convert.c

    r4112 r4113  
    12051205 int16_t *ip; 
    12061206 int c, x; 
     1207 float pos_in; 
     1208 float poly[3]; 
     1209 float y[3]; 
     1210 float x_val; 
    12071211 
    12081212 /* Can't create poly out of less than 3 samples in each channel. */ 
     
    12181222 for ( x = 0; x < olen/channels; x++ ) { 
    12191223  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; 
    12291225 
    12301226   if ( (int)pos_in == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.