Use global constant for pi instead of define. Calculate sinus transform in envelope transform only if amount more than zero.

This commit is contained in:
xenakios
2018-03-26 15:40:30 +03:00
parent 52ebb38415
commit 8421269565
4 changed files with 11 additions and 12 deletions

View File

@ -61,9 +61,7 @@ inline String formatted(Args... args)
#define NULL 0
#endif
#ifndef M_PI
#define M_PI 3.14159265359
#endif
const double c_PI = 3.14159265359;
const int g_maxnumoutchans = 32;