Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
c3122c32
Commit
c3122c32
authored
Nov 04, 2019
by
Sebastian Riebeling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added unfinshed Version of Rotation with BFormat
parent
9474797a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
646 additions
and
149 deletions
+646
-149
conf/VASetup.HOAIdeal.ini
conf/VASetup.HOAIdeal.ini
+1
-0
src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp
...tion/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp
+622
-141
src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.h
...uction/Binaural/VAAmbisonicsBinauralMixdownReproduction.h
+23
-8
No files found.
conf/VASetup.HOAIdeal.ini
View file @
c3122c32
...
...
@@ -12,6 +12,7 @@ Devices = LS1, LS2, LS3, LS4, LS5, LS6, LS7, LS8, LS9, LS10, LS11, LS12, LS13, L
[OutputDevice:LS1]
Type
=
LS
Channels
=
1
#Position = 0,0,-1
Position
=
0,1,-6.1232e-17
[OutputDevice:LS2]
...
...
src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp
View file @
c3122c32
This diff is collapsed.
Click to expand it.
src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.h
View file @
c3122c32
...
...
@@ -22,7 +22,12 @@
#include "Eigen\dense"
#include "Eigen\SVD"
#include "Eigen\Jacobi"
//Added Motion
/*
#include "../../Motion/VAMotionModelBase.h"
#include "../../Motion/VASampleAndHoldMotionModel.h"
#include "../../Motion/VASharedMotionModel.h"
*/
#include <ITASampleFrame.h>
class
ITADatasource
;
...
...
@@ -33,13 +38,13 @@ class CVADirectivityDAFFHRIR;
class
CVAAmbisonicsBinauralMixdownReproduction
:
public
IVAAudioReproduction
{
public:
CVAAmbisonicsBinauralMixdownReproduction
(
const
CVAAudioReproductionInitParams
&
oParams
);
CVAAmbisonicsBinauralMixdownReproduction
(
const
CVAAudioReproductionInitParams
&
oParams
);
~
CVAAmbisonicsBinauralMixdownReproduction
();
void
SetInputDatasource
(
ITADatasource
*
);
void
SetInputDatasource
(
ITADatasource
*
);
ITADatasource
*
GetOutputDatasource
();
int
GetNumInputChannels
()
const
;
int
GetAmbisonicsTruncationOrder
()
const
;
//! Returns number of virtual loudspeaker
...
...
@@ -50,17 +55,23 @@ public:
* Information on virtual position of listener is used
* for binaural downmix with related HRIR.
*/
void
SetTrackedListener
(
const
int
iListenerID
);
void
SetTrackedListener
(
const
int
iListenerID
);
Eigen
::
MatrixXd
CalculatePseudoInverse
(
Eigen
::
MatrixXd
);
void
UpdateScene
(
CVASceneState
*
pNewState
);
void
UpdateScene
(
CVASceneState
*
pNewState
);
private:
std
::
string
m_sName
;
CVAAudioReproductionInitParams
m_oParams
;
bool
m_bBFormatIsInit
;
int
m_iHRIRFilterLength
;
int
m_iAmbisonicsTruncationOrder
;
std
::
string
m_sRotationMode
;
Eigen
::
MatrixXd
m_matYinv
;
std
::
vector
<
double
>
m_vdRemaxWeights
;
Eigen
::
MatrixXd
m_orderMatrices
[
5
];
std
::
vector
<
const
CVAHardwareOutput
*
>
m_vpTargetOutputs
;
const
CVAHardwareOutput
*
m_pVirtualOutput
;
...
...
@@ -76,6 +87,10 @@ private:
std
::
vector
<
int
>
m_viLastHRIRIndex
;
};
#endif // VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN
#endif // IW_VACORE_AMBISONICSBINAURALMIXDOWNREPRODUCTION
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