| 303 | } |
| 304 | |
| 305 | static void set_buf_pointers(sp_conv * p, |
| 306 | int nChannels, int partSize, int nPartitions) |
| 307 | { |
| 308 | SPFLOAT * ptr; |
| 309 | int i; |
| 310 | |
| 311 | ptr = (SPFLOAT *) (p->auxData.ptr); |
| 312 | p->tmpBuf = ptr; |
| 313 | ptr += (partSize << 1); |
| 314 | p->ringBuf = ptr; |
| 315 | ptr += ((partSize << 1) * nPartitions); |
| 316 | for (i = 0; i < nChannels; i++) |
| 317 | { |
| 318 | p->IR_Data[i] = ptr; |
| 319 | ptr += ((partSize << 1) * nPartitions); |
| 320 | } |
| 321 | for (i = 0; i < nChannels; i++) |
| 322 | { |
| 323 | p->outBuffers[i] = ptr; |
| 324 | ptr += (partSize << 1); |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | int sp_conv_create(sp_conv ** p) |
| 329 | { |