Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
4dbbfc6e
Commit
4dbbfc6e
authored
Nov 06, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Style
parent
93415bf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VACoreImpl.cpp
View file @
4dbbfc6e
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment