Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VACore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
7d786ebb
Commit
7d786ebb
authored
Apr 03, 2018
by
Dipl.-Ing. Jonas Stienen
Committed by
Lucas Moesch
Aug 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP on HATO processing
parent
76035b26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/Rendering/Binaural/FreeField/VABinauralFreeFieldAudioRenderer.cpp
...g/Binaural/FreeField/VABinauralFreeFieldAudioRenderer.cpp
+3
-3
src/directivities/VADirectivityDAFFHATOHRIR.cpp
src/directivities/VADirectivityDAFFHATOHRIR.cpp
+2
-2
No files found.
src/Rendering/Binaural/FreeField/VABinauralFreeFieldAudioRenderer.cpp
View file @
7d786ebb
...
...
@@ -55,6 +55,7 @@
// Vista includes
#include <VistaInterProcComm/Concurrency/VistaThreadEvent.h>
#include <VistaBase/VistaQuaternion.h>
// STL includes
#include <algorithm>
...
...
@@ -736,9 +737,8 @@ void CVABinauralFreeFieldAudioRenderer::ProcessStream( const ITAStreamInfo* pStr
pPath
->
UpdateDir
(
bDIREnabled
);
// HATO
const
VAQuat
qHATO
=
pListenerState
->
GetMotionState
()
->
GetHeadAboveTorsoOrientation
();
const
double
dHATODenominator
=
sqrt
(
1
-
qHATO
.
w
*
qHATO
.
w
);
const
double
dHATODeg
=
rad2grad
(
dHATODenominator
==
0.0
f
?
0.0
f
:
qHATO
.
y
/
dHATODenominator
);
const
VistaQuaternion
qHATO
(
pListenerState
->
GetMotionState
()
->
GetHeadAboveTorsoOrientation
().
comp
);
const
double
dHATODeg
=
rad2grad
(
qHATO
.
GetAngles
().
b
);
pPath
->
UpdateHRIR
(
pListenerState
->
GetAnthropometricData
(),
dHATODeg
);
// Sound source gain / direct sound audibility via AuraMode flags
...
...
src/directivities/VADirectivityDAFFHATOHRIR.cpp
View file @
7d786ebb
...
...
@@ -202,12 +202,12 @@ int CVADirectivityDAFFHATOHRIR::GetHATOChannelIndexLeft( const double dHATODeg )
else
iResult
=
(
int
)
(
(
m_dHATOEndDeg
+
dNearestHATODeg
)
/
dHATORes
)
+
1
;
return
2
*
iResult
;
//
odd! index
return
2
*
iResult
;
//
even! channel index (starting at 0)
}
int
CVADirectivityDAFFHATOHRIR
::
GetHATOChannelIndexRight
(
const
double
dHATODeg
)
const
{
return
GetHATOChannelIndexLeft
(
dHATODeg
)
+
1
;
return
GetHATOChannelIndexLeft
(
dHATODeg
)
+
1
;
// odd! channel index (indexing starts at 0, first right channels is 1)
}
void
CVADirectivityDAFFHATOHRIR
::
GetHRIRByIndexAndHATO
(
ITASampleFrame
*
psfDest
,
const
int
iIndex
,
const
double
dHATODeg
)
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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