Searched refs:SIN_BITS (Results 1 – 1 of 1) sorted by relevance
28 #define SIN_BITS 14 macro328 ws->sin = av_malloc(sizeof(*ws->sin) << SIN_BITS); in wavesynth_init()331 for (i = 0; i < 1 << SIN_BITS; i++) in wavesynth_init()332 ws->sin[i] = floor(32767 * sin(2 * M_PI * i / (1 << SIN_BITS))); in wavesynth_init()369 val = amp * (unsigned)ws->sin[in->phi >> (64 - SIN_BITS)]; in wavesynth_synth_sample()