Changeset 5176:0066db242e12 in roaraudio
- Timestamp:
- 10/22/11 13:27:38 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarfilt.c
r5172 r5176 259 259 260 260 switch (bits) { 261 case 16:261 case 8: 262 262 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); 271 264 roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); 272 265 if (roar_vio_write(&svio, buf, i) != i) … … 274 267 } 275 268 break; 276 case 8:269 case 16: 277 270 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); 279 287 if (roar_vio_write(&svio, buf, i) != i) 280 288 break;
Note: See TracChangeset
for help on using the changeset viewer.