Commit 94cbeead authored by Michael Kohnen's avatar Michael Kohnen

small adaptions

parent f0e5f1b2
......@@ -393,6 +393,9 @@ void CVAVBAPFreeFieldAudioRenderer::HandleProcessStream( ITADatasourceRealizatio
double dOverallGain = pState->GetVolume( m_oParams.pCore->GetCoreConfig()->dDefaultAmplitudeCalibration ); // Lautsrke der Quelle einstellen
dOverallGain /= vSoundSource.Length(); // 1/r Gesetz
// if (oPath->pSource->pData->bMuted || (bDSEnabled == false))
// fSoundSourceGain = 0.0f;
for( int k = 0; k < vdLoudspeakerGains.size(); k++ ) // anwenden
{
......
......@@ -67,6 +67,7 @@ CVAAmbisonicsBinauralMixdownReproduction::CVAAmbisonicsBinauralMixdownReproducti
, m_pDefaultHRIR(nullptr)
, m_matYinv(nullptr)
, m_orderMatrices()
, m_bBFormatIsInit(false)
, m_dTrackingDelaySeconds(0)
{
CVAConfigInterpreter conf(*(m_oParams.pConfig));
......@@ -585,7 +586,7 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
if (m_sRotationMode == "BFormat") {
if (m_sRotationMode == "BFormat" && m_bBFormatIsInit) {
//Calculate Rotation from Listener to Origin
//rotate ListenerUp to point Up in standard Up-Vector(0,1,0)
VistaQuaternion qUpToOrigin(vvListenerUp, vvStandardListenerUp);
......@@ -759,6 +760,8 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
pFilterChL->Release();
pFilterChR->Release();
m_bBFormatIsInit = true;
}
}
else {
......
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