Commit c2692e42 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Renaming key for module calls / parameter calls

parent 6c320a13
...@@ -1355,14 +1355,14 @@ CVAStruct CVABinauralFreeFieldAudioRenderer::CallObject( const CVAStruct& oArgs ...@@ -1355,14 +1355,14 @@ CVAStruct CVABinauralFreeFieldAudioRenderer::CallObject( const CVAStruct& oArgs
CVAStruct oReturn; CVAStruct oReturn;
const CVAStructValue* pStruct; const CVAStructValue* pStruct;
if( ( pStruct = oArgs.GetValue( "AdditionalDelaySeconds" ) ) != nullptr ) if( ( pStruct = oArgs.GetValue( "AdditionalStaticDelaySeconds" ) ) != nullptr )
{ {
if( pStruct->GetDatatype() != CVAStructValue::DOUBLE ) if( pStruct->GetDatatype() != CVAStructValue::DOUBLE )
VA_EXCEPT2( INVALID_PARAMETER, "Additional delay must be a double" ); VA_EXCEPT2( INVALID_PARAMETER, "Additional delay must be a double" );
oReturn[ "CurrentAdditionalDelaySeconds" ] = m_dAdditionalStaticDelaySeconds; oReturn[ "CurrentAdditionalStaticDelaySeconds" ] = m_dAdditionalStaticDelaySeconds;
m_dAdditionalStaticDelaySeconds = *pStruct; m_dAdditionalStaticDelaySeconds = *pStruct;
oReturn[ "NewAdditionalDelaySeconds" ] = m_dAdditionalStaticDelaySeconds; oReturn[ "NewAdditionalStaticDelaySeconds" ] = m_dAdditionalStaticDelaySeconds;
return oReturn; return oReturn;
} }
......
...@@ -260,7 +260,7 @@ CVAStruct CVANCTCReproduction::CallObject( const CVAStruct& oArgs ) ...@@ -260,7 +260,7 @@ CVAStruct CVANCTCReproduction::CallObject( const CVAStruct& oArgs )
return oReturn; return oReturn;
} }
if( ( pStruct = oArgs.GetValue( "add_delay_time" ) ) != nullptr ) if( ( pStruct = oArgs.GetValue( "AdditionalDelayTime" ) ) != nullptr )
{ {
if( pStruct->GetDatatype() != CVAStructValue::DATA ) if( pStruct->GetDatatype() != CVAStructValue::DATA )
VA_EXCEPT2( INVALID_PARAMETER, "Delay must be a vector of numeric values" ); VA_EXCEPT2( INVALID_PARAMETER, "Delay must be a vector of numeric values" );
......
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