Reordering update chain in room acoustics renderer

parent 9d740ff5
......@@ -1840,7 +1840,8 @@ void CVARoomAcousticsAudioRenderer::ProcessStream( const ITAStreamInfo* pStreamI
// bei Zuordnung einer anderen Signalquelle ndern kann.
CVASoundSourceDesc* pSourceData = pPath->pSource->pData;
IVAAudioSignalSource* pSignalSourceInfo = pSourceData->pSignalSource;
ITASampleBuffer* psbInput = pSourceData->pSignalSourceInputBuf.get(); // atomar
pPath->pMediumPropagationVDL->Process( pSourceData->pSignalSourceInputBuf, &m_psbVDLTempOut );
// Lautstrke der Schallquelle anwenden
// TODO zugriff sichern! Gefhrlich, wenn CurScene nicht existiert
......@@ -1849,10 +1850,10 @@ void CVARoomAcousticsAudioRenderer::ProcessStream( const ITAStreamInfo* pStreamI
{
double dVolume = pSourceStateCur->GetVolume( m_oParams.pCore->GetCoreConfig()->dDefaultAmplitudeCalibration );
if( dVolume != 1.0f )
psbInput->mul_scalar( ( float ) dVolume );
m_psbVDLTempOut.mul_scalar( ( float ) dVolume );
}
pPath->pMediumPropagationVDL->Process( psbInput, &m_psbVDLTempOut );
pPath->pRIRConvolverCh0->Process( m_psbVDLTempOut.data(), pfOutputCh0, ITABase::MixingMethod::ADD );
pPath->pRIRConvolverCh1->Process( m_psbVDLTempOut.data(), pfOutputCh1, ITABase::MixingMethod::ADD );
......
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