Changeset 5176:0066db242e12 in roaraudio


Ignore:
Timestamp:
10/22/11 13:27:38 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support 32 bit mode, corrected 8 bit mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarfilt.c

    r5172 r5176  
    259259 
    260260 switch (bits) { 
    261   case 16: 
     261  case 8: 
    262262    while((i = roar_vio_read(&svio, buf, BUFSIZE))) { 
    263      if ( mul != div ) 
    264       vol2((void*)buf, mul, div, i); 
    265 #ifdef ROAR_HAVE_LIBM 
    266      if ( logscale ) 
    267       logs2((void*)buf, logscale, i); 
    268      if ( g_lowpass.a ) 
    269       lowpass2((void*)buf, i, channels); 
    270 #endif 
     263     vol1((void*)buf, mul, div, i); 
    271264     roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); 
    272265     if (roar_vio_write(&svio, buf, i) != i) 
     
    274267    } 
    275268   break; 
    276   case 8: 
     269  case 16: 
    277270    while((i = roar_vio_read(&svio, buf, BUFSIZE))) { 
    278      vol1((void*)buf, mul, div, i); 
     271     if ( mul != div ) 
     272      vol2((void*)buf, mul, div, i); 
     273#ifdef ROAR_HAVE_LIBM 
     274     if ( logscale ) 
     275      logs2((void*)buf, logscale, i); 
     276     if ( g_lowpass.a ) 
     277      lowpass2((void*)buf, i, channels); 
     278#endif 
     279     roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); 
     280     if (roar_vio_write(&svio, buf, i) != i) 
     281      break; 
     282    } 
     283   break; 
     284  case 32: 
     285    while((i = roar_vio_read(&svio, buf, BUFSIZE))) { 
     286     roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); 
    279287     if (roar_vio_write(&svio, buf, i) != i) 
    280288      break; 
Note: See TracChangeset for help on using the changeset viewer.