diff options
author | Robin Gareus <robin@gareus.org> | 2016-10-06 00:16:44 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-10-06 00:57:53 +0200 |
commit | f68d2e06bcfb81efda107d3b4c3aa7dbc2d73bc2 (patch) | |
tree | 286d5b2b1c3573c2fbfc77b4d29b0b2a6bfa9686 /libs/qm-dsp/dsp/signalconditioning/Framer.cpp | |
parent | 2a27cc475867612afd261e5bf3b2a1a42b9c75cc (diff) |
update qm-dsp library
Diffstat (limited to 'libs/qm-dsp/dsp/signalconditioning/Framer.cpp')
-rw-r--r-- | libs/qm-dsp/dsp/signalconditioning/Framer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/qm-dsp/dsp/signalconditioning/Framer.cpp b/libs/qm-dsp/dsp/signalconditioning/Framer.cpp index 7357d2417a..e352278ada 100644 --- a/libs/qm-dsp/dsp/signalconditioning/Framer.cpp +++ b/libs/qm-dsp/dsp/signalconditioning/Framer.cpp @@ -44,14 +44,14 @@ void Framer::configure( unsigned int frameLength, unsigned int hop ) if( m_dataFrame != NULL ) { - delete [] m_dataFrame; + delete [] m_dataFrame; m_dataFrame = NULL; } m_dataFrame = new double[ m_frameLength ]; if( m_strideFrame != NULL ) { - delete [] m_strideFrame; + delete [] m_strideFrame; m_strideFrame = NULL; } m_strideFrame = new double[ m_stepSize ]; @@ -64,8 +64,8 @@ void Framer::getFrame(double *dst) { for( unsigned int u = 0; u < m_frameLength; u++) { - dst[ u ] = m_srcBuffer[ m_ulSrcIndex++ ]; - } + dst[ u ] = m_srcBuffer[ m_ulSrcIndex++ ]; + } m_ulSrcIndex -= ( m_frameLength - m_stepSize ); } else @@ -77,7 +77,7 @@ void Framer::getFrame(double *dst) { dst[ u ] = m_srcBuffer[ m_ulSrcIndex++ ]; } - + for( unsigned int u = 0; u < zero; u++ ) { dst[ rem + u ] = 0; |