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
206void tEnvPD_initToPool (tEnvPD* const xpd, int ws, int hs, int bs, tMempool* const mp)206void tEnvPD_initToPool (tEnvPD* const xpd, int ws, int hs, int bs, tMempool* const mp)
207{207{
208 _tMempool* m = *mp;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 int period = hs, npoints = ws;211 int period = hs, npoints = ws;
212 212
@@ -875,7 +875,7 @@ void tPeriodDetection_free (tPeriodDetection* const pd) · 662 unmodified lines
875void tPeriodDetection_initToPool (tPeriodDetection* const pd, float* in, float* out, int bufSize, int frameSize, tMempool* const mp)875void tPeriodDetection_initToPool (tPeriodDetection* const pd, float* in, float* out, int bufSize, int frameSize, tMempool* const mp)
876{876{
877 _tMempool* m = *mp;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 p->inBuffer = in;880 p->inBuffer = in;
881 p->outBuffer = out;881 p->outBuffer = out;
LEAF_JUCEPlugin/Source/MyTest.cpp+2−2
@@ -87,7 +87,7 @@ void LEAFTest_block (void) · 86 unmodified lines
87 87
88 x = val * 3.5f + 0.5f;88 x = val * 3.5f + 0.5f;
89 89
90 a = val * tBuffer_getLength(&buff);90 a = val * tBuffer_getBufferLength(&buff);
91 91
92 DBG("start: " + String(a));92 DBG("start: " + String(a));
93 93
@@ -95,7 +95,7 @@ void LEAFTest_block (void) · 1 unmodified line
95 95
96 y = val * 49.0f + 1.0f;96 y = val * 49.0f + 1.0f;
97 b = val * 20.0f - 5.0f;97 b = val * 20.0f - 5.0f;
98 b = val * tBuffer_getLength(&buff);98 b = val * tBuffer_getBufferLength(&buff);
99 99
100 DBG("rate: " + String(b));100 DBG("rate: " + String(b));
101 101

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