Changeset 5270:e25346c13638 in roaraudio for libroardsp/synth.c


Ignore:
Timestamp:
11/17/11 18:20:12 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some gcc -Wextra warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/synth.c

    r4708 r5270  
    9696 float cv0, cv1; 
    9797#endif 
    98  int i; 
     98 size_t i; 
    9999 
    100100 _CHECK_PCMOUT(); 
     
    133133// basic SINFs: 
    134134float roar_synth_synf_rect (float t, struct roar_synth_state * state) { 
     135 (void)state; 
     136 
    135137 t /= 2*M_PI; 
    136138 t -= (int)t; 
     
    143145 
    144146float roar_synth_synf_saw  (float t, struct roar_synth_state * state) { 
     147 (void)state; 
     148 
    145149 t /= 2*M_PI; 
    146150 t -= (int)t; 
     
    150154 
    151155float roar_synth_synf_tri  (float t, struct roar_synth_state * state) { 
     156 (void)state; 
     157 
    152158 t /= 2*M_PI; 
    153159 t -= (int)t; 
     
    160166 
    161167float roar_synth_synf_trap (float t, struct roar_synth_state * state) { 
     168 (void)state; 
     169 
    162170 t /= 2*M_PI; 
    163171 t -= (int)t; 
     
    176184#ifdef ROAR_HAVE_LIBM 
    177185float roar_synth_synf_s2s  (float t, struct roar_synth_state * state) { 
     186 (void)state; 
     187 
    178188 float sin2 = sinf(t/1.2); 
    179189 
Note: See TracChangeset for help on using the changeset viewer.