Fixing problem with directivity switching of sound sources in binaural free-field renderer

parent b0f0261a
......@@ -1239,7 +1239,7 @@ void CVABFFSoundPath::UpdateSourceDirectivity( bool bSDAuraModeEnabled )
{
// Update directivity data set
pDirectivityDataNew->GetDAFFContent()->getNearestNeighbour( DAFF_OBJECT_VIEW, float( oRelations.dAzimuthS2T ), float( oRelations.dElevationS2T ), oDirectivityStateNew.iRecord );
if( oDirectivityStateCur.iRecord != oDirectivityStateNew.iRecord )
if( oDirectivityStateCur.iRecord != oDirectivityStateNew.iRecord || pDirectivityDataCur != pDirectivityDataNew )
{
std::vector< float > vfMags( ITABase::CThirdOctaveMagnitudeSpectrum::GetNumBands() );
pDirectivityDataNew->GetDAFFContent()->getMagnitudes( oDirectivityStateNew.iRecord, 0, &vfMags[ 0 ] );
......
......@@ -523,7 +523,8 @@ void CVACoreImpl::SetSoundSourceDirectivity( const int iSoundSourceID, const int
ev.iParamID = iDirectivityID;
m_pEventManager->EnqueueEvent( ev );
if( !bSync ) UnlockUpdate();
if( !bSync )
UnlockUpdate();
} VA_RETHROW;
}
......
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