diff --git a/mythtv/libs/libmyth/audio/freesurround.cpp b/mythtv/libs/libmyth/audio/freesurround.cpp index 61eb62d41de..d6502c1cb04 100644 --- a/mythtv/libs/libmyth/audio/freesurround.cpp +++ b/mythtv/libs/libmyth/audio/freesurround.cpp @@ -126,13 +126,6 @@ void FreeSurround::SetParams() } } -FreeSurround::fsurround_params::fsurround_params(int32_t center_width, - int32_t dimension) : - center_width(center_width), - dimension(dimension) -{ -} - FreeSurround::~FreeSurround() { LOG(VB_AUDIO, LOG_DEBUG, QString("FreeSurround::~FreeSurround")); @@ -151,10 +144,6 @@ uint FreeSurround::putFrames(void* buffer, uint numFrames, uint numChannels) auto *samples = (float *)buffer; // demultiplex - float **inputs = m_decoder->getInputBuffers(); - float *lt = &inputs[0][ic]; - float *rt = &inputs[1][ic]; - if ((m_surroundMode != SurroundModePassive) && (ic+numFrames > bs)) { numFrames = bs - ic; @@ -177,6 +166,9 @@ uint FreeSurround::putFrames(void* buffer, uint numFrames, uint numChannels) process = false; break; default: + float **inputs = m_decoder->getInputBuffers(); + float *lt = &inputs[0][ic]; + float *rt = &inputs[1][ic]; for (i=0; igetInputBuffers(); + float *lt = &inputs[0][ic]; + float *rt = &inputs[1][ic]; for (i=0; i PI) phaseDiff -= 2*PI; - phaseDiff = abs(phaseDiff); - // determine sound field x-position m_xFs[f] = ampDiff;