FastLED 3.9.15
Loading...
Searching...
No Matches

◆ compute_window()

static void fl::third_party::vorbis::compute_window ( int32_t n,
float * window )
static

Definition at line 995 of file stb_vorbis.cpp.hpp.

996{
997 int32_t n2 = n >> 1, i;
998 for (i=0; i < n2; ++i)
999 window[i] = (float) sin(0.5 * FL_PI * square((float) sin((i - 0 + 0.5) / n2 * 0.5 * FL_PI)));
1000}
#define FL_PI
Definition math.h:26
enable_if< is_fixed_point< T >::value, T >::type sin(T angle) FL_NOEXCEPT
static float square(float x) FL_NOEXCEPT
fl::i32 int32_t
Definition coder.h:220

References FL_NOEXCEPT, FL_PI, sin(), and square().

Referenced by init_blocksize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: