Changeset 2482:98c1836272a8 in roaraudio for libroardsp/synth.c
- Timestamp:
- 08/23/09 16:07:35 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/synth.c
r2475 r2482 24 24 25 25 #include "libroardsp.h" 26 27 #if !defined(ROAR_HAVE_LIBM) && !defined(M_PI) 28 #define M_PI 3.141592 29 #endif 26 30 27 31 #define _CHECK_BASIC() if ( state == NULL ) return -1 … … 169 173 } 170 174 175 #ifdef ROAR_HAVE_LIBM 171 176 float roar_synth_synf_s2s (float t, struct roar_synth_state * state) { 172 177 float sin2 = sinf(t/1.2); … … 174 179 return sin2*sin2 * sin(t*1.2); 175 180 } 181 #endif 176 182 177 183 //ll
Note: See TracChangeset
for help on using the changeset viewer.