History

fixed zero crossing free function

spiricom committed 6 years ago

Commit ffde7bf1 parent 5f6600e3 files · +1 −-1Browse files

Unified · Split

3 files
  1. .DS_Store +0 −0
  2. LEAF/.DS_Store +0 −0
  3. LEAF/Src/leaf-analysis.c +3 −1
.DS_Store+0−0

Binary file not shown.

LEAF/.DS_Store+0−0

Binary file not shown.

LEAF/Src/leaf-analysis.c+3−1
@@ -113,11 +113,13 @@ void tZeroCrossing_initToPool (tZeroCrossing* const zc, int maxWindowSize, · 112 unmodified lines
113 z->inBuffer = (float*) mpool_calloc(sizeof(float) * maxWindowSize, m);113 z->inBuffer = (float*) mpool_calloc(sizeof(float) * maxWindowSize, m);
114 z->countBuffer = (uint16_t*) mpool_calloc(sizeof(uint16_t) * maxWindowSize, m);114 z->countBuffer = (uint16_t*) mpool_calloc(sizeof(uint16_t) * maxWindowSize, m);
115}115}
116
116void tZeroCrossing_freeFromPool (tZeroCrossing* const zc, tMempool* const mp)117void tZeroCrossing_freeFromPool (tZeroCrossing* const zc, tMempool* const mp)
117{118{
118 _tMempool* m = *mp;119 _tMempool* m = *mp;
119 _tZeroCrossing* z = *zc;120 _tZeroCrossing* z = *zc;
120 121 mpool_free(z->inBuffer, m);
122 mpool_free(z->countBuffer, m);
121 mpool_free(z, m);123 mpool_free(z, m);
122}124}
123 125

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