MCPcopy Create free account
hub / github.com/LabSound/LabSound / sp_ftbl_init

Function sp_ftbl_init

src/core/_SoundPipe_FFT.cpp:158–167  ·  view source on GitHub ↗

initialize constants in ftable */

Source from the content-addressed store, hash-verified

156
157/* initialize constants in ftable */
158int sp_ftbl_init(sp_data * sp, sp_ftbl * ft, size_t size)
159{
160 ft->size = size;
161 ft->sicvt = 1.0 * SP_FT_MAXLEN / sp->sr;
162 ft->lobits = log2(SP_FT_MAXLEN / size);
163 ft->lomask = (1 << ft->lobits) - 1;
164 ft->lodiv = 1.0 / (1 << ft->lobits);
165 ft->del = 1;
166 return SP_OK;
167}
168
169int sp_ftbl_bind(sp_data * sp, sp_ftbl ** ft, SPFLOAT * tbl, size_t size)
170{

Callers 1

sp_ftbl_bindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected