Commit c3122c32 authored by Sebastian Riebeling's avatar Sebastian Riebeling

Added unfinshed Version of Rotation with BFormat

parent 9474797a
......@@ -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]
......
......@@ -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
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