Changeset 5960:65dc0ae5bc75 in roaraudio


Ignore:
Timestamp:
01/04/14 05:46:13 (6 years ago)
Author:
phi
Branch:
default
Message:

some coding style fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/filter_goertzel.c

    r5823 r5960  
    5454 
    5555int roardsp_goertzel_uninit(struct roardsp_filter * filter) { 
    56  
    5756 roar_mm_free(filter->inst); 
    5857 return 0; 
     
    111110 switch (cmd) { 
    112111  case ROARDSP_FCTL_FREQ: 
    113    old = self->freq; 
    114    self->freq = *(float*)data; 
    115    *(float*)data = old; 
    116    old = 2.*cos(2.*M_PI*self->freq/(float)filter->rate); 
    117    self->coeff = old*32767.; 
    118    ROAR_DBG("roardsp_goertzel_ctl(filter=%p, cmd=%i, data=%p): self->coeff=%li (%f)", filter, cmd, data, (long int)self->coeff, old); 
     112    old = self->freq; 
     113    self->freq = *(float*)data; 
     114    *(float*)data = old; 
     115    old = 2.*cos(2.*M_PI*self->freq/(float)filter->rate); 
     116    self->coeff = old*32767.; 
     117    ROAR_DBG("roardsp_goertzel_ctl(filter=%p, cmd=%i, data=%p): self->coeff=%li (%f)", filter, cmd, data, (long int)self->coeff, old); 
    119118   break; 
    120119  default: 
Note: See TracChangeset for help on using the changeset viewer.