History

minor

Matthew Wang committed 6 years ago

Commit 7ef615c1 parent d6b23662 files · +4 −4Browse files

Unified · Split

2 files
  1. LEAF/Src/leaf-analysis.c +2 −2
  2. LEAF_JUCEPlugin/Source/MyTest.cpp +2 −2
LEAF/Src/leaf-analysis.c+2−2
@@ -206,7 +206,7 @@ void tEnvPD_free (tEnvPD* const xpd) · 205 unmodified lines
206206 void tEnvPD_initToPool (tEnvPD* const xpd, int ws, int hs, int bs, tMempool* const mp)
207207 {
208208 _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);
210210
211211 int period = hs, npoints = ws;
212212
@@ -875,7 +875,7 @@ void tPeriodDetection_free (tPeriodDetection* const pd) · 662 unmodified lines
875875 void tPeriodDetection_initToPool (tPeriodDetection* const pd, float* in, float* out, int bufSize, int frameSize, tMempool* const mp)
876876 {
877877 _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);
879879
880880 p->inBuffer = in;
881881 p->outBuffer = out;
LEAF_JUCEPlugin/Source/MyTest.cpp+2−2
@@ -87,7 +87,7 @@ void LEAFTest_block (void) · 86 unmodified lines
8787
8888 x = val * 3.5f + 0.5f;
8989
90− a = val * tBuffer_getLength(&buff);
90+ a = val * tBuffer_getBufferLength(&buff);
9191
9292 DBG("start: " + String(a));
9393
@@ -95,7 +95,7 @@ void LEAFTest_block (void) · 1 unmodified line
9595
9696 y = val * 49.0f + 1.0f;
9797 b = val * 20.0f - 5.0f;
98− b = val * tBuffer_getLength(&buff);
98+ b = val * tBuffer_getBufferLength(&buff);
9999
100100 DBG("rate: " + String(b));
101101

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t