Unified · Split
| @@ -206,7 +206,7 @@ void tEnvPD_free (tEnvPD* const xpd) · 205 unmodified lines | ||
| 206 | 206 | void tEnvPD_initToPool (tEnvPD* const xpd, int ws, int hs, int bs, tMempool* const mp) |
| 207 | 207 | { |
| 208 | 208 | _tMempool* m = *mp; |
| 209 | − _tEnvPD* x = *xpd = (_tEnvPD*) mpool_alloc(sizeof(_tEnvPD), &m->pool); | |
| 209 | + _tEnvPD* x = *xpd = (_tEnvPD*) mpool_allocAndClear(sizeof(_tEnvPD), &m->pool); | |
| 210 | 210 | |
| 211 | 211 | int period = hs, npoints = ws; |
| 212 | 212 | |
| @@ -875,7 +875,7 @@ void tPeriodDetection_free (tPeriodDetection* const pd) · 662 unmodified lines | ||
| 875 | 875 | void tPeriodDetection_initToPool (tPeriodDetection* const pd, float* in, float* out, int bufSize, int frameSize, tMempool* const mp) |
| 876 | 876 | { |
| 877 | 877 | _tMempool* m = *mp; |
| 878 | − _tPeriodDetection* p = *pd = (_tPeriodDetection*) mpool_alloc(sizeof(_tPeriodDetection), &m->pool); | |
| 878 | + _tPeriodDetection* p = *pd = (_tPeriodDetection*) mpool_allocAndClear(sizeof(_tPeriodDetection), &m->pool); | |
| 879 | 879 | |
| 880 | 880 | p->inBuffer = in; |
| 881 | 881 | p->outBuffer = out; |
| @@ -87,7 +87,7 @@ void LEAFTest_block (void) · 86 unmodified lines | ||
| 87 | 87 | |
| 88 | 88 | x = val * 3.5f + 0.5f; |
| 89 | 89 | |
| 90 | − a = val * tBuffer_getLength(&buff); | |
| 90 | + a = val * tBuffer_getBufferLength(&buff); | |
| 91 | 91 | |
| 92 | 92 | DBG("start: " + String(a)); |
| 93 | 93 | |
| @@ -95,7 +95,7 @@ void LEAFTest_block (void) · 1 unmodified line | ||
| 95 | 95 | |
| 96 | 96 | y = val * 49.0f + 1.0f; |
| 97 | 97 | b = val * 20.0f - 5.0f; |
| 98 | − b = val * tBuffer_getLength(&buff); | |
| 98 | + b = val * tBuffer_getBufferLength(&buff); | |
| 99 | 99 | |
| 100 | 100 | DBG("rate: " + String(b)); |
| 101 | 101 | |