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

Function sp_create

src/core/_SoundPipe_FFT.cpp:187–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187int sp_create(sp_data ** spp)
188{
189 *spp = (sp_data *) malloc(sizeof(sp_data));
190 sp_data * sp = *spp;
191 sp->nchan = 1;
192 SPFLOAT * out = (SPFLOAT *) malloc(sizeof(SPFLOAT) * sp->nchan);
193 *out = 0;
194 sp->out = out;
195 sp->sr = 44100;
196 sp->len = 5 * sp->sr;
197 sp->pos = 0;
198 sp->rand = 0;
199 return 0;
200}
201
202int sp_destroy(sp_data ** spp)
203{

Callers 1

ConvolverNodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected