Changeset 5178:221ce09f56b7 in roaraudio for roarclients/roarfilt.c
- Timestamp:
- 10/22/11 13:30:23 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarfilt.c
r5176 r5178 31 31 #endif 32 32 33 #define BUFSIZE 1024 33 #define BUFFERSIZE 1024 34 34 35 #ifdef ROAR_HAVE_LIBM 35 36 struct { … … 150 151 float logscale = 0; 151 152 float lp = 0; 152 char buf[BUF SIZE];153 char buf[BUFFERSIZE]; 153 154 struct roardsp_filterchain fc; 154 155 struct roardsp_filter filter_real[8]; … … 260 261 switch (bits) { 261 262 case 8: 262 while((i = roar_vio_read(&svio, buf, BUFSIZE))) {263 while((i = roar_vio_read(&svio, buf, sizeof(buf)))) { 263 264 vol1((void*)buf, mul, div, i); 264 265 roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); … … 268 269 break; 269 270 case 16: 270 while((i = roar_vio_read(&svio, buf, BUFSIZE))) {271 while((i = roar_vio_read(&svio, buf, sizeof(buf)))) { 271 272 if ( mul != div ) 272 273 vol2((void*)buf, mul, div, i); … … 283 284 break; 284 285 case 32: 285 while((i = roar_vio_read(&svio, buf, BUFSIZE))) {286 while((i = roar_vio_read(&svio, buf, sizeof(buf)))) { 286 287 roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); 287 288 if (roar_vio_write(&svio, buf, i) != i)
Note: See TracChangeset
for help on using the changeset viewer.