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

Style

parent 93415bf1
......@@ -3018,7 +3018,6 @@ void CVACoreImpl::GetSoundReceiverPose( const int iID, VAVec3& v3Pos, VAQuat& qO
const CVAListenerState* pListenerState = pHeadState->GetListenerState( iID );
if( !pListenerState )
// Hrer existiert nicht
VA_EXCEPT2( INVALID_PARAMETER, "Invalid sound receiver ID" );
const CVAMotionState* pMotionState = pListenerState->GetMotionState();
......@@ -3038,7 +3037,24 @@ void CVACoreImpl::SetSoundReceiverPose( const int iID, const VAVec3& vPos, const
VAVec3 CVACoreImpl::GetSoundReceiverPosition( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED;
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
CVASceneState* pHeadState = m_pSceneMan->GetHeadSceneState();
const CVAListenerState* pSoundReceiverState = pHeadState->GetListenerState( iID );
if( !pSoundReceiverState )
VA_EXCEPT2( INVALID_PARAMETER, "Invalid sound receiver ID" );
const CVAMotionState* pMotionState = pSoundReceiverState->GetMotionState();
if( !pMotionState )
VA_EXCEPT2( INVALID_PARAMETER, "SoundReceiver has invalid motion state, probably it has not been positioned, yet?" );
return pMotionState->GetPosition();
}
VA_RETHROW;
}
void CVACoreImpl::SetSoundReceiverPosition( const int iID, const VAVec3& v3Pos )
......@@ -3049,7 +3065,8 @@ void CVACoreImpl::SetSoundReceiverPosition( const int iID, const VAVec3& v3Pos )
VA_TRY
{
bool bSync = GetUpdateLocked();
if( !bSync ) LockUpdate();
if( !bSync )
LockUpdate();
CVAListenerState* pListenerState = m_pNewSceneState->AlterListenerState( iID );
......@@ -3071,7 +3088,8 @@ void CVACoreImpl::SetSoundReceiverPosition( const int iID, const VAVec3& v3Pos )
m_pCoreEventMan->EnqueueEvent( ev );
if( !bSync ) UnlockUpdate();
if( !bSync )
UnlockUpdate();
} VA_RETHROW;
}
......@@ -3116,7 +3134,8 @@ void CVACoreImpl::SetSoundReceiverOrientationVU( const int iID, const VAVec3& v3
if( !bSync )
UnlockUpdate();
} VA_RETHROW;
}
VA_RETHROW;
}
......@@ -3877,9 +3896,9 @@ std::string CVACoreImpl::FindFilePath( const std::string& sRelativeFilePath ) co
}
return sFinalPathWithSearch;
}
}
VA_RETHROW;
}
}
void CVACoreImpl::InitializeAudioDriver()
{
......
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