diff options
author | John Glover <john@john-glovers-macbook.local> | 2010-12-17 18:12:52 +0000 |
---|---|---|
committer | John Glover <john@john-glovers-macbook.local> | 2010-12-17 18:12:52 +0000 |
commit | 3f5c5d34d99b121bb621230a918b621a9524a015 (patch) | |
tree | 7ffd1b25480f6c8ca359ca180e0af58858f3568b /sms/sms.c | |
parent | 20473bc111d2ec16dbe1403b0d8e4d963e15c0c3 (diff) | |
download | simpl-3f5c5d34d99b121bb621230a918b621a9524a015.tar.gz simpl-3f5c5d34d99b121bb621230a918b621a9524a015.tar.bz2 simpl-3f5c5d34d99b121bb621230a918b621a9524a015.zip |
Removed static variables from sms_residual, changed the method signature to accept an SMS_ResidualParams structure.
Diffstat (limited to 'sms/sms.c')
-rw-r--r-- | sms/sms.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -163,9 +163,6 @@ void sms_initAnalParams(SMS_AnalParams *pAnalParams) pAnalParams->ppFrames = NULL; /* residual */ sms_initResidualParams(&pAnalParams->residualParams); - /*pAnalParams->sizeResidual = pAnalParams->sizeHop * 2;*/ - /*pAnalParams->residual = NULL;*/ - /*pAnalParams->residualWindow = NULL;*/ /* peak continuation */ pAnalParams->guideStates = NULL; pAnalParams->guides = NULL; @@ -489,7 +486,7 @@ int sms_initResidual(SMS_ResidualParams *residualParams) return -1; } - /* */ + /* residual signal */ residualParams->residual = (sfloat *)calloc(residualParams->residualSize, sizeof(sfloat)); if(residualParams->residual == NULL) { @@ -497,7 +494,7 @@ int sms_initResidual(SMS_ResidualParams *residualParams) return -1; } - /* */ + /* residual window */ residualParams->residualWindow = (sfloat *)calloc(residualParams->residualSize, sizeof(sfloat)); if(residualParams->residualWindow == NULL) { |