Changeset 5485:78adfa239868 in roaraudio


Ignore:
Timestamp:
04/25/12 11:01:01 (9 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

make the code a bit more uniform

Location:
libroardsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/filter_highp.c

    r5381 r5485  
    9898 newfreq = *(float*)data; 
    9999 
    100  lp = exp(-2.0 * M_PI * newfreq / (float) filter->rate) * 65536; 
     100 lp = exp(-2.0 * M_PI * newfreq / (float) filter->rate) * 65536.; 
    101101 
    102102 self->a =  (65536 + lp)/2.0; 
  • libroardsp/filter_lowp.c

    r5381 r5485  
    9898 newfreq = *(float*)data; 
    9999 
    100  lp = exp(-2. * M_PI * newfreq / filter->rate) * 65536.; 
     100 lp = exp(-2.0 * M_PI * newfreq / (float) filter->rate) * 65536.; 
    101101 
    102102 self->b = lp; 
Note: See TracChangeset for help on using the changeset viewer.