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.h | |
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.h')
-rw-r--r-- | sms/sms.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -269,9 +269,6 @@ typedef struct sfloat spectrumWindow[SMS_MAX_SPEC]; sfloat fftBuffer[SMS_MAX_SPEC * 2]; SMS_ResidualParams residualParams; - //int sizeResidual; - //sfloat *residual; - //sfloat *residualWindow; int *guideStates; SMS_Guide* guides; sfloat inputBuffer[SMS_MAX_FRAME_SIZE]; @@ -675,7 +672,7 @@ void sms_initResidualParams(SMS_ResidualParams *residualParams); int sms_initResidual(SMS_ResidualParams *residualParams); void sms_freeResidual(SMS_ResidualParams *residualParams); int sms_residual(int sizeWindow, sfloat *pSynthesis, sfloat *pOriginal, - sfloat *pResidual, sfloat *pWindow); + SMS_ResidualParams* residualParams); void sms_filterHighPass(int sizeResidual, sfloat *pResidual, int iSamplingRate); int sms_stocAnalysis(int sizeWindow, sfloat *pResidual, sfloat *pWindow, SMS_Data *pSmsFrame, SMS_AnalParams *pAnalParams); |