Changeset 5178:221ce09f56b7 in roaraudio


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

corrected usage of BUFSIZE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarfilt.c

    r5176 r5178  
    3131#endif 
    3232 
    33 #define BUFSIZE 1024 
     33#define BUFFERSIZE 1024 
     34 
    3435#ifdef ROAR_HAVE_LIBM 
    3536struct { 
     
    150151 float  logscale = 0; 
    151152 float  lp       = 0; 
    152  char buf[BUFSIZE]; 
     153 char buf[BUFFERSIZE]; 
    153154 struct roardsp_filterchain fc; 
    154155 struct roardsp_filter      filter_real[8]; 
     
    260261 switch (bits) { 
    261262  case 8: 
    262     while((i = roar_vio_read(&svio, buf, BUFSIZE))) { 
     263    while((i = roar_vio_read(&svio, buf, sizeof(buf)))) { 
    263264     vol1((void*)buf, mul, div, i); 
    264265     roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); 
     
    268269   break; 
    269270  case 16: 
    270     while((i = roar_vio_read(&svio, buf, BUFSIZE))) { 
     271    while((i = roar_vio_read(&svio, buf, sizeof(buf)))) { 
    271272     if ( mul != div ) 
    272273      vol2((void*)buf, mul, div, i); 
     
    283284   break; 
    284285  case 32: 
    285     while((i = roar_vio_read(&svio, buf, BUFSIZE))) { 
     286    while((i = roar_vio_read(&svio, buf, sizeof(buf)))) { 
    286287     roardsp_fchain_calc(&fc, (void*)buf, (8*i)/bits); 
    287288     if (roar_vio_write(&svio, buf, i) != i) 
Note: See TracChangeset for help on using the changeset viewer.