update qm-dsp library

This commit is contained in:
Robin Gareus 2016-10-06 00:16:44 +02:00
parent 2a27cc4758
commit f68d2e06bc
100 changed files with 58968 additions and 55091 deletions

View file

@ -199,10 +199,15 @@ void Decimator::doAntiAlias(const float *src, double *dst, unsigned int length)
void Decimator::process(const double *src, double *dst)
{
if( m_decFactor != 1 )
{
doAntiAlias( src, decBuffer, m_inputLength );
if (m_decFactor == 1) {
for( unsigned int i = 0; i < m_outputLength; i++ ) {
dst[i] = src[i];
}
return;
}
doAntiAlias( src, decBuffer, m_inputLength );
unsigned idx = 0;
for( unsigned int i = 0; i < m_outputLength; i++ )
@ -213,10 +218,15 @@ void Decimator::process(const double *src, double *dst)
void Decimator::process(const float *src, float *dst)
{
if( m_decFactor != 1 )
{
doAntiAlias( src, decBuffer, m_inputLength );
if (m_decFactor == 1) {
for( unsigned int i = 0; i < m_outputLength; i++ ) {
dst[i] = src[i];
}
return;
}
doAntiAlias( src, decBuffer, m_inputLength );
unsigned idx = 0;
for( unsigned int i = 0; i < m_outputLength; i++ )