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

Function buf_bytes_alloc

src/core/_SoundPipe_FFT.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static int buf_bytes_alloc(int nChannels, int partSize, int nPartitions)
294{
295 int nSmps;
296
297 nSmps = (partSize << 1); /* tmpBuf */
298 nSmps += ((partSize << 1) * nPartitions); /* ringBuf */
299 nSmps += ((partSize << 1) * nChannels * nPartitions); /* IR_Data */
300 nSmps += ((partSize << 1) * nChannels); /* outBuffers */
301
302 return ((int) sizeof(SPFLOAT) * nSmps);
303}
304
305static void set_buf_pointers(sp_conv * p,
306 int nChannels, int partSize, int nPartitions)

Callers 1

sp_conv_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected