Fixing bug in binaural free-field renderer filterbank switch

parent e1e0f88f
......@@ -157,7 +157,7 @@ MotionModelLogEstimatedOutputSources = false
MotionModelLogInputListener = false
MotionModelLogEstimatedOutputListener = false
SwitchingAlgorithm = linear
FilterBankType = iir_burg_order4
FilterBankType = iir_burg_order10
[Renderer:MyAmbientMixer]
class = AmbientMixer
......
......@@ -330,15 +330,17 @@ void CVABinauralFreeFieldAudioRenderer::Init( const CVAStruct& oArgs )
ITA_EXCEPT1( INVALID_PARAMETER, "Unrecognized interpolation algorithm '" + sVLDInterpolationAlgorithm + "' in BinauralFreefieldAudioRendererConfig" );
std::string sFilterBankType;
conf.OptString( "FilterBankType", sFilterBankType, "iir_burg_order4" );
if( toLowercase( sFilterBankType ) == "fir" )
conf.OptString( "FilterBankType", sFilterBankType, "iir_burg_order10" );
if( toLowercase( sFilterBankType ) == "fir_spline_linear_phase" )
m_iFilterBankType = CITAThirdOctaveFilterbank::FIR_SPLINE_LINEAR_PHASE;
if( toLowercase( sFilterBankType ) == "iir_biquads_order10" )
else if( toLowercase( sFilterBankType ) == "iir_biquads_order10" )
m_iFilterBankType = CITAThirdOctaveFilterbank::IIR_BIQUADS_ORDER10;
if( toLowercase( sFilterBankType ) == "iir_burg_order10" )
m_iFilterBankType = CITAThirdOctaveFilterbank::IIR_BIQUADS_ORDER10;
else
else if( toLowercase( sFilterBankType ) == "iir_burg_order4" )
m_iFilterBankType = CITAThirdOctaveFilterbank::IIR_BURG_ORDER4;
else if( toLowercase( sFilterBankType ) == "iir_burg_order10" )
m_iFilterBankType = CITAThirdOctaveFilterbank::IIR_BURG_ORDER10;
else
VA_EXCEPT2( INVALID_PARAMETER, "Unrecognized filter bank type '" + sFilterBankType + "' in configuration" );
conf.OptInteger( "HRIRFilterLength", m_iHRIRFilterLength, 256 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment