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

Starting section on recording and off-line simulation

parent f7776e85
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VAServer/LICENSE.md File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VAServer/LICENSE.md File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......@@ -46,7 +46,7 @@
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">C:/dev/VA/VAServer/LICENSE.md File Reference</div> </div>
<div class="title">D:/Users/stienen/dev/VA/VAServer/LICENSE.md File Reference</div> </div>
</div><!--header-->
<div class="contents">
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VAServer/LICENSE.md Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VAServer/LICENSE.md Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......@@ -46,7 +46,7 @@
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">C:/dev/VA/VAServer/LICENSE.md</div> </div>
<div class="title">D:/Users/stienen/dev/VA/VAServer/LICENSE.md</div> </div>
</div><!--header-->
<div class="contents">
<a href="_l_i_c_e_n_s_e_8md.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;Copyright 2015-2017 Institute of Technical Acoustics (ITA), RWTH Aachen University</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;you may not use files of this project except in compliance with the License.</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;You may obtain a copy of the License at</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;&lt;http://www.apache.org/licenses/LICENSE-2.0&gt;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;Unless required by applicable law or agreed to in writing, software</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;See the License for the specific language governing permissions and</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;limitations under the License.</div></div><!-- fragment --></div><!-- contents -->
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VAServer/README.md File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VAServer/README.md File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......@@ -46,7 +46,7 @@
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">C:/dev/VA/VAServer/README.md File Reference</div> </div>
<div class="title">D:/Users/stienen/dev/VA/VAServer/README.md File Reference</div> </div>
</div><!--header-->
<div class="contents">
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VAServer/README.md Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VAServer/README.md Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......@@ -46,7 +46,7 @@
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">C:/dev/VA/VAServer/README.md</div> </div>
<div class="title">D:/Users/stienen/dev/VA/VAServer/README.md</div> </div>
</div><!--header-->
<div class="contents">
<a href="_r_e_a_d_m_e_8md.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;## VAServer</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;VAServer is a lightweight command line C++ server application for real-time auralization.</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;### License</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;Copyright 2015-2017 Institute of Technical Acoustics (ITA), RWTH Aachen University</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;you may not use files of this project except in compliance with the License.</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;You may obtain a copy of the License at</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;&lt;http://www.apache.org/licenses/LICENSE-2.0&gt;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;Unless required by applicable law or agreed to in writing, software</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;See the License for the specific language governing permissions and</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;limitations under the License.</div></div><!-- fragment --></div><!-- contents -->
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VABase/include/VA.h File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VABase/include/VA.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VABase/include/VA.h Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VABase/include/VA.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.cpp File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.cpp Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.h File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.h Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Drivers/Audio/VAASIOBackend.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.cpp File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.cpp Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......@@ -68,7 +68,7 @@
<div class="ttc" id="class_c_v_a_sound_source_state_html"><div class="ttname"><a href="class_c_v_a_sound_source_state.html">CVASoundSourceState</a></div><div class="ttdef"><b>Definition:</b> <a href="_v_a_sound_source_state_8h_source.html#l00025">VASoundSourceState.h:25</a></div></div>
<div class="ttc" id="class_i_v_a_interface_html_a2556a3683a8c87b4fa5535d03c2eb54a"><div class="ttname"><a href="class_i_v_a_interface.html#a2556a3683a8c87b4fa5535d03c2eb54a">IVAInterface::VA_AURAMODE_SOURCE_DIRECTIVITY</a></div><div class="ttdeci">static const int VA_AURAMODE_SOURCE_DIRECTIVITY</div><div class="ttdoc">Source directivity. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_interface_8h_source.html#l00077">VAInterface.h:77</a></div></div>
<div class="ttc" id="class_i_v_a_interface_html_a68d8cc07314d436e8424ab26cb153245"><div class="ttname"><a href="class_i_v_a_interface.html#a68d8cc07314d436e8424ab26cb153245">IVAInterface::VA_AURAMODE_DOPPLER</a></div><div class="ttdeci">static const int VA_AURAMODE_DOPPLER</div><div class="ttdoc">Doppler effects. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_interface_8h_source.html#l00083">VAInterface.h:83</a></div></div>
<div class="ttc" id="class_v_a_quat_html"><div class="ttname"><a href="class_v_a_quat.html">VAQuat</a></div><div class="ttdoc">4-element Quaternion (double precision) </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00128">VABase.h:128</a></div></div>
<div class="ttc" id="class_v_a_quat_html"><div class="ttname"><a href="class_v_a_quat.html">VAQuat</a></div><div class="ttdoc">4-element Quaternion (double precision) </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00137">VABase.h:137</a></div></div>
<div class="ttc" id="class_c_v_a_config_interpreter_html"><div class="ttname"><a href="class_c_v_a_config_interpreter.html">CVAConfigInterpreter</a></div><div class="ttdoc">Utility class helping to interpret structs as configuration specifications. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_utils_8h_source.html#l00092">VAUtils.h:92</a></div></div>
<div class="ttc" id="_v_a_exception_8h_html_a3a805cf8bf0cf174d4d9f33e19be5cfc"><div class="ttname"><a href="_v_a_exception_8h.html#a3a805cf8bf0cf174d4d9f33e19be5cfc">VA_EXCEPT2</a></div><div class="ttdeci">#define VA_EXCEPT2(ERRORCODE, ERRRORMSG)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_exception_8h_source.html#l00070">VAException.h:70</a></div></div>
<div class="ttc" id="class_c_v_a_scene_state_diff_html"><div class="ttname"><a href="class_c_v_a_scene_state_diff.html">CVASceneStateDiff</a></div><div class="ttdef"><b>Definition:</b> <a href="_v_a_scene_state_8h_source.html#l00177">VASceneState.h:177</a></div></div>
......@@ -80,22 +80,22 @@
<div class="ttc" id="class_c_v_a_basic_motion_model_html_a6e7a11c5fd3c9452bac6da3e7846570c"><div class="ttname"><a href="class_c_v_a_basic_motion_model.html#a6e7a11c5fd3c9452bac6da3e7846570c">CVABasicMotionModel::Reset</a></div><div class="ttdeci">void Reset()</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_motion_model_base_8cpp_source.html#l00240">VAMotionModelBase.cpp:240</a></div></div>
<div class="ttc" id="class_c_v_a_listener_state_html_afb2e1d1ba6d473795f7d9addbc05048e"><div class="ttname"><a href="class_c_v_a_listener_state.html#afb2e1d1ba6d473795f7d9addbc05048e">CVAListenerState::GetMotionState</a></div><div class="ttdeci">const CVAMotionState * GetMotionState() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_listener_state_8cpp_source.html#l00069">VAListenerState.cpp:69</a></div></div>
<div class="ttc" id="class_c_v_a_referenceable_object_html_a0fa422ca387589e160cabc5a6c7aa96d"><div class="ttname"><a href="class_c_v_a_referenceable_object.html#a0fa422ca387589e160cabc5a6c7aa96d">CVAReferenceableObject::AddReference</a></div><div class="ttdeci">virtual int AddReference() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_referenceable_object_8cpp_source.html#l00044">VAReferenceableObject.cpp:44</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_a97d108b080faf58747d1177adcf32e11"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#a97d108b080faf58747d1177adcf32e11">CVADirectivityDAFFHRIR::GetHRIRByIndex</a></div><div class="ttdeci">void GetHRIRByIndex(ITASampleFrame *psfDest, const int iIndex, const float fDistanceMeters) const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00190">VADirectivityDAFFHRIR.cpp:190</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_a97d108b080faf58747d1177adcf32e11"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#a97d108b080faf58747d1177adcf32e11">CVADirectivityDAFFHRIR::GetHRIRByIndex</a></div><div class="ttdeci">void GetHRIRByIndex(ITASampleFrame *psfDest, const int iIndex, const float fDistanceMeters) const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00151">VADirectivityDAFFHRIR.cpp:151</a></div></div>
<div class="ttc" id="class_c_v_a_struct_html"><div class="ttname"><a href="class_c_v_a_struct.html">CVAStruct</a></div><div class="ttdoc">Associative array container. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_struct_8h_source.html#l00057">VAStruct.h:57</a></div></div>
<div class="ttc" id="class_i_v_a_interface_html_a22afb6d80b28eecb03af380e0842b9b1"><div class="ttname"><a href="class_i_v_a_interface.html#a22afb6d80b28eecb03af380e0842b9b1">IVAInterface::VA_AURAMODE_SPREADING_LOSS</a></div><div class="ttdeci">static const int VA_AURAMODE_SPREADING_LOSS</div><div class="ttdoc">Spherical spreading loss. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_interface_8h_source.html#l00084">VAInterface.h:84</a></div></div>
<div class="ttc" id="_v_a_log_8h_html_a3bb89b3dc6d71f177433fd35b778600c"><div class="ttname"><a href="_v_a_log_8h.html#a3bb89b3dc6d71f177433fd35b778600c">VA_WARN</a></div><div class="ttdeci">#define VA_WARN(module, expr)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_log_8h_source.html#l00048">VALog.h:48</a></div></div>
<div class="ttc" id="class_c_v_a_sound_source_desc_html_af8e2a8ec1400ae7d4990ee9268ad4ffc"><div class="ttname"><a href="class_c_v_a_sound_source_desc.html#af8e2a8ec1400ae7d4990ee9268ad4ffc">CVASoundSourceDesc::sExplicitRendererID</a></div><div class="ttdeci">std::string sExplicitRendererID</div><div class="ttdoc">Explicit renderer for this sound source (empty = all) </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_sound_source_desc_8h_source.html#l00035">VASoundSourceDesc.h:35</a></div></div>
<div class="ttc" id="_v_a_utils_8cpp_html_ab519ef20acfe16d095bc567edca468d7"><div class="ttname"><a href="_v_a_utils_8cpp.html#ab519ef20acfe16d095bc567edca468d7">VASleep</a></div><div class="ttdeci">void VASleep(int iMilliseconds)</div><div class="ttdoc">Sleep function. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_utils_8cpp_source.html#l00034">VAUtils.cpp:34</a></div></div>
<div class="ttc" id="class_c_v_a_audio_renderer_init_params_html"><div class="ttname"><a href="class_c_v_a_audio_renderer_init_params.html">CVAAudioRendererInitParams</a></div><div class="ttdoc">Audio renderer initialization parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_audio_renderer_8h_source.html#l00030">VAAudioRenderer.h:30</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_ab2eb0092da1b1006686ed91ff9b81788"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ab2eb0092da1b1006686ed91ff9b81788">CVADirectivityDAFFHRIR::GetHRIR</a></div><div class="ttdeci">void GetHRIR(ITASampleFrame *psfDest, const float fAzimuthDeg, const float fElevationDeg, const float fDistanceMeters, int *piIndex=nullptr, bool *pbOutOfBounds=nullptr) const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00206">VADirectivityDAFFHRIR.cpp:206</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_ab2eb0092da1b1006686ed91ff9b81788"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ab2eb0092da1b1006686ed91ff9b81788">CVADirectivityDAFFHRIR::GetHRIR</a></div><div class="ttdeci">void GetHRIR(ITASampleFrame *psfDest, const float fAzimuthDeg, const float fElevationDeg, const float fDistanceMeters, int *piIndex=nullptr, bool *pbOutOfBounds=nullptr) const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00167">VADirectivityDAFFHRIR.cpp:167</a></div></div>
<div class="ttc" id="_v_a_atmosphere_8cpp_html_ae1b270b810216a82a1438023f047e885"><div class="ttname"><a href="_v_a_atmosphere_8cpp.html#ae1b270b810216a82a1438023f047e885">CalculateAirAbsorptionAttenuation</a></div><div class="ttdeci">void CalculateAirAbsorptionAttenuation(CITAThirdOctaveFactorMagnitudeSpectrum &amp;oAirAbsMags, double dDistance, double dTemperature, double dStaticPressure, double dHumidity)</div><div class="ttdoc">Berechnung der Luftschall-Absorption in Terzen. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_atmosphere_8cpp_source.html#l00111">VAAtmosphere.cpp:111</a></div></div>
<div class="ttc" id="class_c_v_a_sound_source_state_html_ac1505ef78e72491bc9d751830f15a57c"><div class="ttname"><a href="class_c_v_a_sound_source_state.html#ac1505ef78e72491bc9d751830f15a57c">CVASoundSourceState::GetVolume</a></div><div class="ttdeci">double GetVolume() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_sound_source_state_8cpp_source.html#l00108">VASoundSourceState.cpp:108</a></div></div>
<div class="ttc" id="class_c_v_a_audiostream_state_html_a8b575cda64961f685476a3d40047b6c0"><div class="ttname"><a href="class_c_v_a_audiostream_state.html#a8b575cda64961f685476a3d40047b6c0">CVAAudiostreamState::dSysTime</a></div><div class="ttdeci">double dSysTime</div><div class="ttdoc">Associated system time in time [s] (internal core clock) of the first sample of the requested output ...</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00422">VABase.h:422</a></div></div>
<div class="ttc" id="class_c_v_a_audiostream_state_html_a8b575cda64961f685476a3d40047b6c0"><div class="ttname"><a href="class_c_v_a_audiostream_state.html#a8b575cda64961f685476a3d40047b6c0">CVAAudiostreamState::dSysTime</a></div><div class="ttdeci">double dSysTime</div><div class="ttdoc">Associated system time in time [s] (internal core clock) of the first sample of the requested output ...</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00441">VABase.h:441</a></div></div>
<div class="ttc" id="class_c_v_a_h_r_i_r_properties_html_a71181b9d345ce3b7473f8a08b7cad63a"><div class="ttname"><a href="class_c_v_a_h_r_i_r_properties.html#a71181b9d345ce3b7473f8a08b7cad63a">CVAHRIRProperties::iFilterLength</a></div><div class="ttdeci">int iFilterLength</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8h_source.html#l00031">VADirectivityDAFFHRIR.h:31</a></div></div>
<div class="ttc" id="_v_a_referenceable_object_8h_html"><div class="ttname"><a href="_v_a_referenceable_object_8h.html">VAReferenceableObject.h</a></div></div>
<div class="ttc" id="class_i_v_a_object_pool_html_a17db45047913a0abc230789a46e4ef84"><div class="ttname"><a href="class_i_v_a_object_pool.html#a17db45047913a0abc230789a46e4ef84">IVAObjectPool::Create</a></div><div class="ttdeci">static IVAObjectPool * Create(int iInitialSize, int iDelta, IVAPoolObjectFactory *pFactory, bool bDeleteFactory)</div><div class="ttdoc">Factory method. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_object_pool_8cpp_source.html#l00099">VAObjectPool.cpp:99</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_ad42d58fc6aad0aa4ae6c7a173e3098fa"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad42d58fc6aad0aa4ae6c7a173e3098fa">CVADirectivityDAFFHRIR::GetProperties</a></div><div class="ttdeci">const CVAHRIRProperties * GetProperties() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00172">VADirectivityDAFFHRIR.cpp:172</a></div></div>
<div class="ttc" id="_v_a_base_8h_html_ae97dc3eb03962cd6f69889cd07869102"><div class="ttname"><a href="_v_a_base_8h.html#ae97dc3eb03962cd6f69889cd07869102">operator==</a></div><div class="ttdeci">VABASE_API bool operator==(const VAVec3 &amp;a, const VAVec3 &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00083">VABase.h:83</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_ad42d58fc6aad0aa4ae6c7a173e3098fa"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad42d58fc6aad0aa4ae6c7a173e3098fa">CVADirectivityDAFFHRIR::GetProperties</a></div><div class="ttdeci">const CVAHRIRProperties * GetProperties() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00133">VADirectivityDAFFHRIR.cpp:133</a></div></div>
<div class="ttc" id="_v_a_base_8h_html_ae97dc3eb03962cd6f69889cd07869102"><div class="ttname"><a href="_v_a_base_8h.html#ae97dc3eb03962cd6f69889cd07869102">operator==</a></div><div class="ttdeci">VABASE_API bool operator==(const VAVec3 &amp;a, const VAVec3 &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00092">VABase.h:92</a></div></div>
<div class="ttc" id="_v_a_object_pool_8h_html"><div class="ttname"><a href="_v_a_object_pool_8h.html">VAObjectPool.h</a></div></div>
<div class="ttc" id="class_c_v_a_listener_state_html_af4cf246a24b2a692db09f267a45c32e9"><div class="ttname"><a href="class_c_v_a_listener_state.html#af4cf246a24b2a692db09f267a45c32e9">CVAListenerState::GetAuralizationMode</a></div><div class="ttdeci">int GetAuralizationMode() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_listener_state_8cpp_source.html#l00107">VAListenerState.cpp:107</a></div></div>
<div class="ttc" id="class_i_v_a_pool_object_factory_html"><div class="ttname"><a href="class_i_v_a_pool_object_factory.html">IVAPoolObjectFactory</a></div><div class="ttdoc">Pool object factory interface. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_pool_object_8h_source.html#l00080">VAPoolObject.h:80</a></div></div>
......@@ -107,7 +107,7 @@
<div class="ttc" id="class_c_v_a_scene_state_html_a99de19983f7390bbf395c498d04cb4de"><div class="ttname"><a href="class_c_v_a_scene_state.html#a99de19983f7390bbf395c498d04cb4de">CVASceneState::Diff</a></div><div class="ttdeci">void Diff(const CVASceneState *pState, CVASceneStateDiff *pDiff) const </div><div class="ttdoc">Differenzinformation erzeugen. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_scene_state_8cpp_source.html#l00463">VASceneState.cpp:463</a></div></div>
<div class="ttc" id="class_c_v_a_sound_source_state_html_af934fb0205f664bc878a4c31afb8c76a"><div class="ttname"><a href="class_c_v_a_sound_source_state.html#af934fb0205f664bc878a4c31afb8c76a">CVASoundSourceState::GetDirectivityData</a></div><div class="ttdeci">const IVADirectivity * GetDirectivityData() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_sound_source_state_8cpp_source.html#l00126">VASoundSourceState.cpp:126</a></div></div>
<div class="ttc" id="class_i_v_a_interface_html_a2dad68621100a3470a098a5ec5d81bbf"><div class="ttname"><a href="class_i_v_a_interface.html#a2dad68621100a3470a098a5ec5d81bbf">IVAInterface::VA_AURAMODE_EARLY_REFLECTIONS</a></div><div class="ttdeci">static const int VA_AURAMODE_EARLY_REFLECTIONS</div><div class="ttdoc">Early reflections. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_interface_8h_source.html#l00075">VAInterface.h:75</a></div></div>
<div class="ttc" id="_v_a_base_8h_html_a2f8fbe85a139e824d6dd4fd3f4ee4664"><div class="ttname"><a href="_v_a_base_8h.html#a2f8fbe85a139e824d6dd4fd3f4ee4664">operator!=</a></div><div class="ttdeci">VABASE_API bool operator!=(const VAVec3 &amp;a, const VAVec3 &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00088">VABase.h:88</a></div></div>
<div class="ttc" id="_v_a_base_8h_html_a2f8fbe85a139e824d6dd4fd3f4ee4664"><div class="ttname"><a href="_v_a_base_8h.html#a2f8fbe85a139e824d6dd4fd3f4ee4664">operator!=</a></div><div class="ttdeci">VABASE_API bool operator!=(const VAVec3 &amp;a, const VAVec3 &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00097">VABase.h:97</a></div></div>
<div class="ttc" id="class_c_v_a_source_listener_metrics_html"><div class="ttname"><a href="class_c_v_a_source_listener_metrics.html">CVASourceListenerMetrics</a></div><div class="ttdef"><b>Definition:</b> <a href="_v_a_source_listener_metrics_8h_source.html#l00025">VASourceListenerMetrics.h:25</a></div></div>
<div class="ttc" id="class_c_v_a_scene_state_diff_html_a185dd18cc13661997f0171fcdac64090"><div class="ttname"><a href="class_c_v_a_scene_state_diff.html#a185dd18cc13661997f0171fcdac64090">CVASceneStateDiff::viNewListenerIDs</a></div><div class="ttdeci">std::vector&lt; int &gt; viNewListenerIDs</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_scene_state_8h_source.html#l00187">VASceneState.h:187</a></div></div>
<div class="ttc" id="_v_a_air_traffic_noise_audio_renderer_8h_html"><div class="ttname"><a href="_v_a_air_traffic_noise_audio_renderer_8h.html">VAAirTrafficNoiseAudioRenderer.h</a></div></div>
......@@ -118,8 +118,8 @@
<div class="ttc" id="_v_a_base_definitions_8h_html_a070d2ce7b6bb7e5c05602aa8c308d0c4"><div class="ttname"><a href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></div><div class="ttdeci">#define NULL</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_definitions_8h_source.html#l00059">VABaseDefinitions.h:59</a></div></div>
<div class="ttc" id="class_c_v_a_pool_object_html"><div class="ttname"><a href="class_c_v_a_pool_object.html">CVAPoolObject</a></div><div class="ttdoc">Pool objects base class. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_pool_object_8h_source.html#l00033">VAPoolObject.h:33</a></div></div>
<div class="ttc" id="class_i_v_a_interface_html_a4508e132314e5743a3ba7021423e303e"><div class="ttname"><a href="class_i_v_a_interface.html#a4508e132314e5743a3ba7021423e303e">IVAInterface::VA_AURAMODE_MEDIUM_ABSORPTION</a></div><div class="ttdeci">static const int VA_AURAMODE_MEDIUM_ABSORPTION</div><div class="ttdoc">Absorption in air. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_interface_8h_source.html#l00078">VAInterface.h:78</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_ad375c520db4663dace50799fd91fb027"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad375c520db4663dace50799fd91fb027">CVADirectivityDAFFHRIR::GetNearestNeighbour</a></div><div class="ttdeci">void GetNearestNeighbour(const float fAzimuthDeg, const float fElevationDeg, int *piIndex, bool *pbOutOfBounds=nullptr) const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00177">VADirectivityDAFFHRIR.cpp:177</a></div></div>
<div class="ttc" id="class_c_v_a_audiostream_state_html"><div class="ttname"><a href="class_c_v_a_audiostream_state.html">CVAAudiostreamState</a></div><div class="ttdoc">Data class describing states of audio streams. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00418">VABase.h:418</a></div></div>
<div class="ttc" id="class_c_v_a_directivity_d_a_f_f_h_r_i_r_html_ad375c520db4663dace50799fd91fb027"><div class="ttname"><a href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad375c520db4663dace50799fd91fb027">CVADirectivityDAFFHRIR::GetNearestNeighbour</a></div><div class="ttdeci">void GetNearestNeighbour(const float fAzimuthDeg, const float fElevationDeg, int *piIndex, bool *pbOutOfBounds=nullptr) const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_directivity_d_a_f_f_h_r_i_r_8cpp_source.html#l00138">VADirectivityDAFFHRIR.cpp:138</a></div></div>
<div class="ttc" id="class_c_v_a_audiostream_state_html"><div class="ttname"><a href="class_c_v_a_audiostream_state.html">CVAAudiostreamState</a></div><div class="ttdoc">Data class describing states of audio streams. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_8h_source.html#l00437">VABase.h:437</a></div></div>
<div class="ttc" id="_v_a_log_8h_html_ac949d5a5a02deab290fc4023f360dd27"><div class="ttname"><a href="_v_a_log_8h.html#ac949d5a5a02deab290fc4023f360dd27">VA_VERBOSE</a></div><div class="ttdeci">#define VA_VERBOSE(module, expr)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_log_8h_source.html#l00050">VALog.h:50</a></div></div>
<div class="ttc" id="_v_a_log_8h_html_a8d5397cf4a00c374739d0957285b70e7"><div class="ttname"><a href="_v_a_log_8h.html#a8d5397cf4a00c374739d0957285b70e7">VA_TRACE</a></div><div class="ttdeci">#define VA_TRACE(module, expr)</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_log_8h_source.html#l00051">VALog.h:51</a></div></div>
<div class="ttc" id="class_c_v_a_scene_state_html_a32028269635f6d5ad8ecb088459f36e6"><div class="ttname"><a href="class_c_v_a_scene_state.html#a32028269635f6d5ad8ecb088459f36e6">CVASceneState::GetListenerState</a></div><div class="ttdeci">CVAListenerState * GetListenerState(int iListenerID) const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_scene_state_8cpp_source.html#l00211">VASceneState.cpp:211</a></div></div>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.h File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.h Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Binaural/AirTrafficNoise/VAAirTrafficNoiseAudioRenderer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.cpp File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.cpp Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......@@ -67,7 +67,7 @@
<div class="ttc" id="_v_a_utils_8cpp_html_ab519ef20acfe16d095bc567edca468d7"><div class="ttname"><a href="_v_a_utils_8cpp.html#ab519ef20acfe16d095bc567edca468d7">VASleep</a></div><div class="ttdeci">void VASleep(int iMilliseconds)</div><div class="ttdoc">Sleep function. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_utils_8cpp_source.html#l00034">VAUtils.cpp:34</a></div></div>
<div class="ttc" id="class_c_v_a_audio_renderer_init_params_html"><div class="ttname"><a href="class_c_v_a_audio_renderer_init_params.html">CVAAudioRendererInitParams</a></div><div class="ttdoc">Audio renderer initialization parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_audio_renderer_8h_source.html#l00030">VAAudioRenderer.h:30</a></div></div>
<div class="ttc" id="class_c_v_a_sound_source_state_html_ac1505ef78e72491bc9d751830f15a57c"><div class="ttname"><a href="class_c_v_a_sound_source_state.html#ac1505ef78e72491bc9d751830f15a57c">CVASoundSourceState::GetVolume</a></div><div class="ttdeci">double GetVolume() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_sound_source_state_8cpp_source.html#l00108">VASoundSourceState.cpp:108</a></div></div>
<div class="ttc" id="class_c_v_a_hardware_output_html_ad65f812b2425dd3019516690cc3abd01"><div class="ttname"><a href="class_c_v_a_hardware_output.html#ad65f812b2425dd3019516690cc3abd01">CVAHardwareOutput::GetPhysicalOutputChannels</a></div><div class="ttdeci">std::vector&lt; int &gt; GetPhysicalOutputChannels() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_hardware_setup_8cpp_source.html#l00282">VAHardwareSetup.cpp:282</a></div></div>
<div class="ttc" id="class_c_v_a_hardware_output_html_ad65f812b2425dd3019516690cc3abd01"><div class="ttname"><a href="class_c_v_a_hardware_output.html#ad65f812b2425dd3019516690cc3abd01">CVAHardwareOutput::GetPhysicalOutputChannels</a></div><div class="ttdeci">std::vector&lt; int &gt; GetPhysicalOutputChannels() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_hardware_setup_8cpp_source.html#l00325">VAHardwareSetup.cpp:325</a></div></div>
<div class="ttc" id="_v_a_base_definitions_8h_html_a070d2ce7b6bb7e5c05602aa8c308d0c4"><div class="ttname"><a href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></div><div class="ttdeci">#define NULL</div><div class="ttdef"><b>Definition:</b> <a href="_v_a_base_definitions_8h_source.html#l00059">VABaseDefinitions.h:59</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</DIV>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.h File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.h Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Rendering/Ambient/Mixer/VAAmbientMixerAudioRenderer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp File Reference</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......
......@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Virtual Acoustics (VA) C++ API: C:/dev/VA/VACore/src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp Source File</title>
<title>Virtual Acoustics (VA) C++ API: D:/Users/stienen/dev/VA/VACore/src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
......@@ -53,7 +53,7 @@
<div class="title">VAAmbisonicsBinauralMixdownReproduction.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_v_a_ambisonics_binaural_mixdown_reproduction_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * --------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * VVV VVV AAA Licensed under the Apache License, Version 2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * VVV VVV AAA</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * VVV VVV AAA Copyright 2015-2017</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * VVVVVV AAA Institute of Technical Acoustics (ITA)</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * VVVV AAA RWTH Aachen University</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * --------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_v_a_ambisonics_binaural_mixdown_reproduction_8h.html">VAAmbisonicsBinauralMixdownReproduction.h</a>&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#if (VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN==1 )</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;../../directivities/VADirectivityDAFFHRIR.h&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;../../Scene/VAListenerState.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;../../Scene/VAMotionState.h&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;../../Scene/VASceneState.h&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;../../Utils/VAUtils.h&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;../../VAHardwareSetup.h&quot;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ITAUPConvolution.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ITAUPFilterPool.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;ITAUPFilter.h&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;ITAUPTrigger.h&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;ITADataSourceRealization.h&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;ITANumericUtils.h&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;ITAStreamPatchbay.h&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;VistaBase/VistaQuaternion.h&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &lt;VistaBase/VistaTransformMatrix.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &lt;VistaBase/VistaVector3D.h&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#include &lt;xutility&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &lt;ITAFastMath.h&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">class </span>CMixdownStreamFilter : <span class="keyword">public</span> ITADatasourceRealization</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;{</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; ITADatasource* pdsInput;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; ITAUPFilterPool* pFilterPool;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; ITAUPTrigger* pTrigger;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; std::vector&lt; ITAUPConvolution* &gt; vpConvolver;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; CMixdownStreamFilter( <span class="keywordtype">int</span> iNumLoudspeaker, <span class="keywordtype">double</span> dSampleRate, <span class="keywordtype">int</span> iBlockLength, <span class="keywordtype">int</span> iMaxFilterLength );</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; ~CMixdownStreamFilter();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordtype">void</span> SetIdentity();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">void</span> SetFilter( <span class="keyword">const</span> <span class="keywordtype">int</span> iIndex, ITAUPFilter* pFilterChL, ITAUPFilter* pFilterChR );</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordtype">void</span> ProcessStream( <span class="keyword">const</span> ITAStreamInfo* pStreamInfo );</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordtype">void</span> PostIncrementBlockPointer();</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;};</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;CVAAmbisonicsBinauralMixdownReproduction::CVAAmbisonicsBinauralMixdownReproduction( <span class="keyword">const</span> <a class="code" href="class_c_v_a_audio_reproduction_module_init_params.html">CVAAudioReproductionModuleInitParams</a>&amp; oParams )</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;: m_oParams( oParams )</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;, m_pdsStreamFilter( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;, m_iListenerID( -1 )</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;{</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="class_c_v_a_config_interpreter.html">CVAConfigInterpreter</a> conf( *(m_oParams.pConfig) );</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; conf.ReqInteger( <span class="stringliteral">&quot;TruncationOrder&quot;</span>, m_iAmbisonicsTruncationOrder ); <span class="comment">// Sollte aus der Zahl der Eingangskanle berechnet werden</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; conf.OptInteger( <span class="stringliteral">&quot;HRIRFilterLength&quot;</span>, m_iHRIRFilterLength, 128 ); </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; conf.OptInteger( <span class="stringliteral">&quot;TrackedListenerID&quot;</span>, m_iListenerID, 1 );</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">double</span> dSampleRate = m_oParams.pCore-&gt;GetCoreConfig()-&gt;oAudioDriverConfig.dSampleRate;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordtype">int</span> iBlockLength = oParams.<a class="code" href="class_c_v_a_audio_reproduction_module_init_params.html#a5d52ce141095020db39427303aed8e64">pCore</a>-&gt;<a class="code" href="class_c_v_a_core_impl.html#a9e2f74413c36e1c632359a62b1b24234">GetCoreConfig</a>()-&gt;<a class="code" href="class_c_v_a_core_config.html#a012842d7aedb37adab6abf9be095d7e5">oAudioDriverConfig</a>.<a class="code" href="class_c_v_a_audio_driver_config.html#a5783bb59b0d7bca0462a65eb479b8d7c">iBuffersize</a>;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; m_sfHRIRTemp.init( 2, m_iHRIRFilterLength, <span class="keyword">true</span> );</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="comment">// Binaural output</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">size_t</span> i=0; i&lt;m_oParams.vpOutputs.size(); i++ )</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">const</span> <a class="code" href="class_c_v_a_hardware_output.html">CVAHardwareOutput</a>* pTargetOutput = m_oParams.vpOutputs[i];</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">if</span>( pTargetOutput == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="_v_a_exception_8h.html#a3a805cf8bf0cf174d4d9f33e19be5cfc">VA_EXCEPT2</a>( INVALID_PARAMETER, <span class="stringliteral">&quot;Unrecognized output &#39;&quot;</span>+pTargetOutput-&gt;<a class="code" href="class_c_v_a_hardware_output.html#a2e834f88df739709ebd0f5a6bff6c31b">sIdentifier</a>+<span class="stringliteral">&quot;&#39; for binaural mixdown reproduction&quot;</span> );</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">if</span>( pTargetOutput-&gt;<a class="code" href="class_c_v_a_hardware_output.html#ad65f812b2425dd3019516690cc3abd01">GetPhysicalOutputChannels</a>().size() != 2 )</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="_v_a_exception_8h.html#a3a805cf8bf0cf174d4d9f33e19be5cfc">VA_EXCEPT2</a>( INVALID_PARAMETER, <span class="stringliteral">&quot;Expecting two channels for binaural downmix target, problem with output &#39;&quot;</span>+pTargetOutput-&gt;<a class="code" href="class_c_v_a_hardware_output.html#a2e834f88df739709ebd0f5a6bff6c31b">sIdentifier</a>+<span class="stringliteral">&quot;&#39; detected&quot;</span> );</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; m_vpTargetOutputs.push_back( pTargetOutput );</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Virtual loudspeaker output</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; std::string sVirtualOutput;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; conf.ReqString( <span class="stringliteral">&quot;VirtualOutput&quot;</span>, sVirtualOutput );</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; m_pVirtualOutput = m_oParams.pCore-&gt;GetCoreConfig()-&gt;oHardwareSetup.GetOutput( sVirtualOutput );</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span>( m_pVirtualOutput == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <a class="code" href="_v_a_exception_8h.html#a3a805cf8bf0cf174d4d9f33e19be5cfc">VA_EXCEPT2</a>( INVALID_PARAMETER, <span class="stringliteral">&quot;Unrecognized virtual output &#39;&quot;</span>+sVirtualOutput+<span class="stringliteral">&quot;&#39; for binaural mixdown reproduction&quot;</span> );</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// Decoder input (B-Format with implicit channels)</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; m_pDecoderMatrixPatchBay = <span class="keyword">new</span> ITAStreamPatchbay( dSampleRate, iBlockLength );</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; m_pDecoderMatrixPatchBay-&gt;AddInput( GetNumInputChannels() );</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="comment">// Decoder output (N-channel loudspeaker)</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; m_pDecoderMatrixPatchBay-&gt;AddOutput( GetNumVirtualLoudspeaker() );</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; m_pdsStreamFilter = <span class="keyword">new</span> CMixdownStreamFilter( GetNumVirtualLoudspeaker(), dSampleRate, iBlockLength, m_iHRIRFilterLength );</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; m_pdsStreamFilter-&gt;pdsInput = m_pDecoderMatrixPatchBay-&gt;GetOutputDatasource( 0 );</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordtype">double</span> dYInv[9][25] =</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; { 0.141479, 0.141920, 0.141646, 0.141830, 0.142275, 0.141479, 0.141526, 0.141477, 0.141646, 0.141477, 0.141994, 0.142275, 0.142275, 0.141994, 0.141526, 0.141646, 0.141830, 0.141526, 0.141994, 0.141479, 0.141477, 0.141920, 0.142466, 0.141830, 0.141920 },</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; { 0.005941, 0.000089, 0.086866, -0.289171, -0.218760, 0.132279, -0.048748, 0.071201, -0.185809, -0.181762, 0.034672, -0.097372, -0.227303, 0.268540, -0.043764, -0.167073, -0.026226, 0.231909, 0.143544, -0.214299, 0.160602, 0.253240, 0.208520, -0.056470, 0.159354 },</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; { 0.290269, -0.120293, 0.057773, 0.017307, 0.127976, -0.149033, -0.246478, -0.271526, 0.204262, 0.037630, 0.059254, 0.035368, -0.077298, 0.084189, 0.205663, -0.219915, 0.224294, 0.018744, -0.214181, -0.129190, 0.225973, -0.132183, -0.033016, -0.182721, 0.187134 },</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; { -0.010309, 0.259113, -0.259466, 0.048463, -0.121716, -0.211398, 0.104138, -0.083419, 0.044248, 0.226498, 0.275812, -0.261374, -0.146311, 0.039797, 0.172511, -0.043928, -0.187809, -0.140852, 0.119610, 0.147593, -0.094330, -0.002682, 0.203135, -0.222917, 0.145594 },</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; { 0.003282, -0.006696, -0.269060, -0.131720, 0.296452, -0.310102, -0.063386, -0.049882, -0.103034, -0.428107, 0.094691, 0.284039, 0.372584, 0.114170, -0.092901, 0.073076, 0.056890, -0.381878, 0.184781, -0.325510, -0.157803, -0.006838, 0.444594, 0.142130, 0.260228 },</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; { 0.006189, -0.003088, 0.059091, -0.061678, -0.317678, -0.218363, 0.141425, -0.209619, -0.439036, -0.085531, 0.030327, -0.038565, 0.201335, 0.253543, -0.105321, 0.428546, -0.068044, 0.051366, -0.347849, 0.314950, 0.398489, -0.373260, -0.072262, 0.118783, 0.336251 },</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; { 0.519905, -0.128956, -0.222463, -0.253086, -0.095566, -0.071242, 0.363030, 0.423903, 0.166847, -0.253144, -0.231166, -0.242859, -0.197860, -0.179531, 0.179474, 0.223870, 0.180918, -0.239684, 0.189199, -0.092858, 0.186994, -0.092435, -0.250168, 0.034298, 0.082579 },</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; { -0.009086, -0.352444, -0.165782, 0.007717, -0.177053, 0.316863, -0.292659, 0.226190, 0.099659, 0.096699, 0.185697, -0.105388, 0.131534, 0.030299, 0.408122, 0.113469, -0.438948, -0.030252, -0.278323, -0.207655, -0.222219, 0.016649, -0.070396, 0.420575, 0.296734 },</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; { -0.012261, 0.367459, 0.351366, -0.428608, -0.189546, 0.145810, 0.047338, -0.002382, -0.187556, 0.115177, 0.413844, 0.336094, -0.171487, -0.398253, 0.158751, -0.155985, 0.188937, -0.192006, -0.025891, -0.117003, -0.096159, -0.357402, -0.011634, 0.237909, -0.016513 },</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; };</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">//if (m_iAmbisonicsTruncationOrder == 3)</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">//{</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="comment">/* { double dYInv[16][12] =</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="comment"> { 0.1935, 0.1935, 0.1935, 0.1935, 0.2222, 0.2222, 0.2222, 0.2222, 0.2386, 0.2386, 0.2386, 0.2386 },</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="comment"> { 0.5226, -0.5226, -0.5226, 0.5226, -0.0000, -0.6052, 0.0000, 0.6052, -0.0000, -0.6203, 0.0000, 0.6203 },</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="comment"> { -0.0083, -0.0083, -0.0083, -0.0083, 0.6265, 0.6265, 0.6265, 0.6265, -0.5964, -0.5964, -0.5964, -0.5964 },</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment"> { 0.5226, 0.5226, -0.5226, -0.5226, 0.6052, -0.0000, -0.6052, -0.0000, 0.6203, 0.0000, -0.6203, -0.0000 },</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment"> { 1.3985, -1.3985, 1.3985, -1.3985, 0.0000, -0.0000, -0.0000, 0.0000, -0.0000, -0.0000, -0.0000, -0.0000 },</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> { 0.0072, -0.0072, -0.0072, 0.0072, -0.0000, -2.0462, 0.0000, 2.0462, 0.0000, 2.0034, 0.0000, -2.0034 },</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment"> { -0.4886, -0.4886, -0.4886, -0.4886, -0.1783, -0.1783, -0.1783, -0.1783, -0.1914, -0.1914, -0.1914, -0.1914 },</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment"> { 0.0072, 0.0072, -0.0072, -0.0072, 2.0462, 0.0000, -2.0462, 0.0000, -2.0034, 0.0000, 2.0034, -0.0000 },</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="comment"> { -0.0000, 0.0000, 0.0000, -0.0000, 0.7820, -0.7820, 0.7820, -0.7820, 0.8396, -0.8396, 0.8396, -0.8396 },</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="comment"> { 1.5412, -1.5412, -1.5412, 1.5412, -0.0000, 1.1505, 0.0000, -1.1505, -0.0000, 1.3099, 0.0000, -1.3099 },</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="comment"> { 0.0000, 0.0000, 0.0000, -0.0000, -0.0000, 0.0000, -0.0000, 0.0000, -0.0000, -0.0000, 0.0000, 0.0000 },</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="comment"> { -0.5516, 0.5516, 0.5516, -0.5516, 0.0000, -0.3022, 0.0000, 0.3022, -0.0000, -0.1409, -0.0000, 0.1409 },</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="comment"> { 0.0004, 0.0004, 0.0004, 0.0004, -1.1248, -1.1248, -1.1248, -1.1248, 1.0876, 1.0876, 1.0876, 1.0876 },</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="comment"> { -0.5516, -0.5516, 0.5516, 0.5516, 0.3022, 0.0000, -0.3022, 0.0000, 0.1409, -0.0000, -0.1409, 0.0000 },</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="comment"> { -0.0000, 0.0000, 0.0000, 0.0000, 1.4519, -1.4519, 1.4519, -1.4519, -1.4043, 1.4043, -1.4043, 1.4043 },</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="comment"> { -1.5412, -1.5412, 1.5412, 1.5412, 1.1505, 0.0000, -1.1505, -0.0000, 1.3099, -0.0000, -1.3099, 0.0000 },</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="comment"> };</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="comment"> else if (m_iAmbisonicsTruncationOrder == 2)</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="comment"> double dYInv[9][12] =</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="comment"> { 0.1935, 0.1935, 0.1935, 0.1935, 0.2287, 0.2287, 0.2287, 0.2287, 0.2323, 0.2323, 0.2323, 0.2323 },</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="comment"> { 0.5348, -0.5348, -0.5348, 0.5348, 0.0000, -0.6703, -0.0000, 0.6703, -0.0000, -0.7317, 0.0000, 0.7317 },</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="comment"> { -0.0087, -0.0087, -0.0087, -0.0087, 0.5053, 0.5053, 0.5053, 0.5053, -0.4788, -0.4788, -0.4788, -0.4788 },</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="comment"> { 0.5348, 0.5348, -0.5348, -0.5348, 0.6703, 0.0000, -0.6703, -0.0000, 0.7317, -0.0000, -0.7317, -0.0000 },</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<span class="comment"> { 1.6712, -1.6712, 1.6712, -1.6712, -0.0000, 0.0000, -0.0000, 0.0000, 0.0000, -0.0000, -0.0000, -0.0000 },</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="comment"> { -0.0414, 0.0414, 0.0414, -0.0414, 0.0000, -2.4757, 0.0000, 2.4757, 0.0000, 2.3722, 0.0000, -2.3722 },</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="comment"> { -0.5839, -0.5839, -0.5839, -0.5839, -0.1921, -0.1921, -0.1921, -0.1921, -0.2490, -0.2490, -0.2490, -0.2490 },</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<span class="comment"> { -0.0414, -0.0414, 0.0414, 0.0414, 2.4757, -0.0000, -2.4757, 0.0000, -2.3722, -0.0000, 2.3722, -0.0000 },</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="comment"> { 0.0000, -0.0000, 0.0000, -0.0000, 0.9531, -0.9531, 0.9531, -0.9531, 0.9854, -0.9854, 0.9854, -0.9854 },</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="comment"> };</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="comment"> else if (m_iAmbisonicsTruncationOrder == 1)</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="comment"> double dYInv[4][12] =</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="comment"> { 0.2533, 0.2533, 0.2533, 0.2533, 0.2484, 0.2484, 0.2484, 0.2484, 0.2578, 0.2578, 0.2578, 0.2578 },</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="comment"> { 0.5940, -0.5940, -0.5940, 0.5940, -0.0000, -0.7734, 0.0000, 0.7734, -0.0000, -0.7864, 0.0000, 0.7864 },</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="comment"> { -0.0163, -0.0163, -0.0163, -0.0163, 0.5596, 0.5596, 0.5596, 0.5596, -0.5351, -0.5351, -0.5351, -0.5351 },</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="comment"> { 0.5940, 0.5940, -0.5940, -0.5940, 0.7734, 0.0000, -0.7734, 0.0000, 0.7864, -0.0000, -0.7864, -0.0000 },</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="comment"> };</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="comment"> else</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="comment"> VA_EXCEPT1(&quot;Ambisonics truncation order unknown - ATM only 1,2,3 is supported&quot;);</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="comment"> } */</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="comment">// Matrix</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i=0; i &lt; GetNumInputChannels(); i++ )</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; {</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> j=0; j &lt; GetNumVirtualLoudspeaker(); j++ )</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordtype">double</span> dGain = dYInv[i][j]; <span class="comment">// todo calculate from LS setup @mko</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; m_pDecoderMatrixPatchBay-&gt;ConnectChannels( 0, i, 0, j, dGain );</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; }</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; m_viLastHRIRIndex.resize( GetNumVirtualLoudspeaker() );</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;}</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;CVAAmbisonicsBinauralMixdownReproduction::~CVAAmbisonicsBinauralMixdownReproduction()</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;{</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keyword">delete</span> m_pdsStreamFilter;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; m_pdsStreamFilter = <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">delete</span> m_pDecoderMatrixPatchBay;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; m_pDecoderMatrixPatchBay = <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;}</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="keywordtype">void</span> CVAAmbisonicsBinauralMixdownReproduction::SetInputDatasource( ITADatasource* p )</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;{</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; m_pDecoderMatrixPatchBay-&gt;SetInputDatasource( 0, p );</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;}</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;ITADatasource* CVAAmbisonicsBinauralMixdownReproduction::GetOutputDatasource()</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;{</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordflow">return</span> m_pdsStreamFilter;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;}</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="keywordtype">int</span> CVAAmbisonicsBinauralMixdownReproduction::GetNumVirtualLoudspeaker()<span class="keyword"> const</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keywordtype">size_t</span> iSize = m_pVirtualOutput-&gt;vpDevices.size();</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keywordflow">return</span> int( iSize );</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;}</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;<span class="keywordtype">int</span> CVAAmbisonicsBinauralMixdownReproduction::GetNumInputChannels()<span class="keyword"> const</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keywordflow">return</span> ( ( m_iAmbisonicsTruncationOrder + 1 ) * ( m_iAmbisonicsTruncationOrder + 1 ) );</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;}</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;<span class="keywordtype">void</span> CVAAmbisonicsBinauralMixdownReproduction::SetTrackedListener( <span class="keyword">const</span> <span class="keywordtype">int</span> iID )</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;{</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; m_iListenerID = iID;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;}</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;<span class="keywordtype">void</span> CVAAmbisonicsBinauralMixdownReproduction::UpdateScene( <a class="code" href="class_c_v_a_scene_state.html">CVASceneState</a>* pNewState )</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;{</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keywordflow">if</span>( m_iListenerID == -1 ) </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <a class="code" href="class_c_v_a_listener_state.html">CVAListenerState</a>* pLIstenerState( pNewState-&gt;<a class="code" href="class_c_v_a_scene_state.html#a32028269635f6d5ad8ecb088459f36e6">GetListenerState</a>( m_iListenerID ) );</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordflow">if</span>( pLIstenerState == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keyword">const</span> <a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html">CVADirectivityDAFFHRIR</a>* pHRIRSet = ( <a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html">CVADirectivityDAFFHRIR</a>*) pLIstenerState-&gt;GetDirectivity();</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keywordflow">if</span>( pHRIRSet == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="code" href="class_v_a_vec3.html">VAVec3</a> vListenerPos, vListenerView, vListenerUp;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; m_oParams.pCore-&gt;GetSoundReceiverRealWorldPositionOrientationVU( m_iListenerID, vListenerPos, vListenerView, vListenerUp );</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i=0; i&lt;GetNumVirtualLoudspeaker(); i++ )</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; {</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <span class="keywordtype">int</span> iIndexLeft = 2*i+0;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keywordtype">int</span> iIndexRight = 2*i+1;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keyword">const</span> <a class="code" href="class_c_v_a_hardware_device.html">CVAHardwareDevice</a>* pDevice( m_pVirtualOutput-&gt;vpDevices[i] );</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keywordtype">double</span> dAzimuth = <a class="code" href="_v_a_utils_8cpp.html#aacea946ab673a8426554b88e29e9840b">GetAzimuthOnTarget_DEG</a>( vListenerPos, vListenerView, vListenerUp, pDevice-&gt;vPos );</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <span class="keywordtype">double</span> dElevation = <a class="code" href="_v_a_utils_8cpp.html#a1ca7f9ec5f0195196a74c90ac0585633">GetElevationOnTarget_DEG</a>( vListenerPos, vListenerView, vListenerUp, pDevice-&gt;vPos );</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="keywordtype">double</span> dDistance = ( pDevice-&gt;vPos - vListenerPos ).Length();</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="comment">// Re-init temp buffer to match with current HRIR length</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <span class="keywordtype">int</span> iHRIRFilterLength = pHRIRSet-&gt;<a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad42d58fc6aad0aa4ae6c7a173e3098fa">GetProperties</a>()-&gt;<a class="code" href="class_c_v_a_h_r_i_r_properties.html#a71181b9d345ce3b7473f8a08b7cad63a">iFilterLength</a>;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="keywordflow">if</span>( m_sfHRIRTemp.length() != iHRIRFilterLength )</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; m_sfHRIRTemp.init( 2, iHRIRFilterLength, <span class="keyword">false</span> );</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="keywordtype">int</span> iIndex;</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; pHRIRSet-&gt;<a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad375c520db4663dace50799fd91fb027">GetNearestNeighbour</a>( <span class="keywordtype">float</span>( dAzimuth ), <span class="keywordtype">float</span>( dElevation ), &amp;iIndex );</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <span class="comment">// Skip if still same HRIR</span></div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="keywordflow">if</span>( iIndex == m_viLastHRIRIndex[i] )</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; pHRIRSet-&gt;<a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#a97d108b080faf58747d1177adcf32e11">GetHRIRByIndex</a>( &amp;m_sfHRIRTemp, iIndex, 0 );</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; m_viLastHRIRIndex[i] = iIndex;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; ITAUPFilter* pFilterChL = m_pdsStreamFilter-&gt;pFilterPool-&gt;RequestFilter();</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; ITAUPFilter* pFilterChR = m_pdsStreamFilter-&gt;pFilterPool-&gt;RequestFilter();</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; </div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; <span class="keywordtype">int</span> iLoadFilter = (std::min)( m_iHRIRFilterLength, iHRIRFilterLength );</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; pFilterChL-&gt;Zeros();</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; pFilterChL-&gt;Load( m_sfHRIRTemp[0].data(), iLoadFilter );</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; pFilterChR-&gt;Zeros();</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; pFilterChR-&gt;Load( m_sfHRIRTemp[1].data(), iLoadFilter );</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <span class="comment">// Update</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; m_pdsStreamFilter-&gt;vpConvolver[iIndexLeft]-&gt;ExchangeFilter( pFilterChL );</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; m_pdsStreamFilter-&gt;vpConvolver[iIndexRight]-&gt;ExchangeFilter( pFilterChR );</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; pFilterChL-&gt;Release();</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; pFilterChR-&gt;Release();</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; }</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; m_pdsStreamFilter-&gt;pTrigger-&gt;trigger();</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160;}</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160;<span class="comment">// --= Stream filter =--</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;CMixdownStreamFilter::CMixdownStreamFilter( <span class="keywordtype">int</span> iNumLoudspeaker, <span class="keywordtype">double</span> dSampleRate, <span class="keywordtype">int</span> iBlockLength, <span class="keywordtype">int</span> iMaxFilterLength ) : ITADatasourceRealization( 2, dSampleRate, iBlockLength )</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; , pdsInput( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; , pFilterPool( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; , pTrigger( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;{</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; pFilterPool = <span class="keyword">new</span> ITAUPFilterPool( (<span class="keywordtype">int</span>) m_uiBlocklength, iMaxFilterLength, 24 );</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; ITAUPFilter* pDirac = pFilterPool-&gt;RequestFilter();</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; pDirac-&gt;identity();</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; pTrigger = <span class="keyword">new</span> ITAUPTrigger;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i=0; i&lt; 2 * iNumLoudspeaker; i++ )</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; {</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; ITAUPConvolution* pConvolver = <span class="keyword">new</span> ITAUPConvolution( (<span class="keywordtype">int</span>) GetBlocklength(), iMaxFilterLength, pFilterPool );</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; pConvolver-&gt;SetFilterExchangeTrigger( pTrigger );</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; pConvolver-&gt;SetFilterExchangeMode( ITAUPConvolution::CROSSFADE_COSINE_SQUARE );</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; pConvolver-&gt;SetFilterCrossfadeLength( (<span class="keywordtype">int</span>) GetBlocklength() );</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; pConvolver-&gt;ExchangeFilter( pDirac );</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; vpConvolver.push_back( pConvolver );</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; pDirac-&gt;Release();</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160;</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; pTrigger-&gt;trigger();</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160;}</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;CMixdownStreamFilter::~CMixdownStreamFilter()</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160;{</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">size_t</span> i=0; i&lt;vpConvolver.size(); i++ )</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; <span class="keyword">delete</span> vpConvolver[i];</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160;</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; <span class="keyword">delete</span> pFilterPool;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; <span class="keyword">delete</span> pTrigger;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160;}</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;<span class="keywordtype">void</span> CMixdownStreamFilter::ProcessStream( <span class="keyword">const</span> ITAStreamInfo* pStreamInfo )</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160;{</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; <span class="keywordtype">float</span>* pfBinauralOutputDataChL = GetWritePointer( 0 );</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <span class="keywordtype">float</span>* pfBinauralOutputDataChR = GetWritePointer( 1 );</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; </div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="comment">// Iterate over loudspeaker channels</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;pdsInput-&gt;GetNumberOfChannels(); i++ )</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; {</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; <span class="keywordtype">int</span> iIndexLeft = 2*i+0;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <span class="keywordtype">int</span> iIndexRight = 2*i+1;</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keyword">const</span> <span class="keywordtype">float</span>* pfInputData = pdsInput-&gt;GetBlockPointer( i, pStreamInfo );</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <span class="keywordtype">int</span> iWriteMode = ( i == 0 ) ? ITAUPConvolution::OUTPUT_OVERWRITE : ITAUPConvolution::OUTPUT_MIX;</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; vpConvolver[iIndexLeft]-&gt;Process( pfInputData, pfBinauralOutputDataChL, iWriteMode );</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; vpConvolver[iIndexRight]-&gt;Process( pfInputData, pfBinauralOutputDataChR, iWriteMode );</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; }</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160;</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; IncrementWritePointer();</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160;}</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160;<span class="keywordtype">void</span> CMixdownStreamFilter::PostIncrementBlockPointer()</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160;{</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; pdsInput-&gt;IncrementBlockPointer();</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160;}</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160;<span class="preprocessor">#endif // VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN</span></div><div class="ttc" id="class_c_v_a_core_impl_html_a9e2f74413c36e1c632359a62b1b24234"><div class="ttname"><a href="class_c_v_a_core_impl.html#a9e2f74413c36e1c632359a62b1b24234">CVACoreImpl::GetCoreConfig</a></div><div class="ttdeci">const CVACoreConfig * GetCoreConfig() const </div><div class="ttdef"><b>Definition:</b> <a href="_v_a_core_impl_8cpp_source.html#l04558">VACoreImpl.cpp:4558</a></div></div>
<a href="_v_a_ambisonics_binaural_mixdown_reproduction_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * --------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * VVV VVV AAA Licensed under the Apache License, Version 2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * VVV VVV AAA</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * VVV VVV AAA Copyright 2015-2017</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * VVVVVV AAA Institute of Technical Acoustics (ITA)</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * VVVV AAA RWTH Aachen University</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * --------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_v_a_ambisonics_binaural_mixdown_reproduction_8h.html">VAAmbisonicsBinauralMixdownReproduction.h</a>&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#if (VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN==1 )</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;../../directivities/VADirectivityDAFFHRIR.h&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;../../Scene/VAListenerState.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;../../Scene/VAMotionState.h&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;../../Scene/VASceneState.h&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;../../Utils/VAUtils.h&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;../../VAHardwareSetup.h&quot;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ITAUPConvolution.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ITAUPFilterPool.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;ITAUPFilter.h&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;ITAUPTrigger.h&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;ITADataSourceRealization.h&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;ITANumericUtils.h&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;ITAStreamPatchbay.h&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;VistaBase/VistaQuaternion.h&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &lt;VistaBase/VistaTransformMatrix.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &lt;VistaBase/VistaVector3D.h&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#include &lt;xutility&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &lt;ITAFastMath.h&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">class </span>CMixdownStreamFilter : <span class="keyword">public</span> ITADatasourceRealization</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;{</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; ITADatasource* pdsInput;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; ITAUPFilterPool* pFilterPool;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; ITAUPTrigger* pTrigger;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; std::vector&lt; ITAUPConvolution* &gt; vpConvolver;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; CMixdownStreamFilter( <span class="keywordtype">int</span> iNumLoudspeaker, <span class="keywordtype">double</span> dSampleRate, <span class="keywordtype">int</span> iBlockLength, <span class="keywordtype">int</span> iMaxFilterLength );</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; ~CMixdownStreamFilter();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordtype">void</span> SetIdentity();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">void</span> SetFilter( <span class="keyword">const</span> <span class="keywordtype">int</span> iIndex, ITAUPFilter* pFilterChL, ITAUPFilter* pFilterChR );</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordtype">void</span> ProcessStream( <span class="keyword">const</span> ITAStreamInfo* pStreamInfo );</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordtype">void</span> PostIncrementBlockPointer();</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;};</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;CVAAmbisonicsBinauralMixdownReproduction::CVAAmbisonicsBinauralMixdownReproduction( <span class="keyword">const</span> <a class="code" href="class_c_v_a_audio_reproduction_module_init_params.html">CVAAudioReproductionModuleInitParams</a>&amp; oParams )</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;: m_oParams( oParams )</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;, m_pdsStreamFilter( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;, m_iListenerID( -1 )</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;{</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="class_c_v_a_config_interpreter.html">CVAConfigInterpreter</a> conf( *(m_oParams.pConfig) );</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; conf.ReqInteger( <span class="stringliteral">&quot;TruncationOrder&quot;</span>, m_iAmbisonicsTruncationOrder ); <span class="comment">// Sollte aus der Zahl der Eingangskanle berechnet werden</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; conf.OptInteger( <span class="stringliteral">&quot;HRIRFilterLength&quot;</span>, m_iHRIRFilterLength, 128 ); </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; conf.OptInteger( <span class="stringliteral">&quot;TrackedListenerID&quot;</span>, m_iListenerID, 1 );</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">double</span> dSampleRate = m_oParams.pCore-&gt;GetCoreConfig()-&gt;oAudioDriverConfig.dSampleRate;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordtype">int</span> iBlockLength = oParams.<a class="code" href="class_c_v_a_audio_reproduction_module_init_params.html#a5d52ce141095020db39427303aed8e64">pCore</a>-&gt;<a class="code" href="class_c_v_a_core_impl.html#a9e2f74413c36e1c632359a62b1b24234">GetCoreConfig</a>()-&gt;<a class="code" href="class_c_v_a_core_config.html#a012842d7aedb37adab6abf9be095d7e5">oAudioDriverConfig</a>.<a class="code" href="class_c_v_a_audio_driver_config.html#a5783bb59b0d7bca0462a65eb479b8d7c">iBuffersize</a>;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; m_sfHRIRTemp.init( 2, m_iHRIRFilterLength, <span class="keyword">true</span> );</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="comment">// Binaural output</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">size_t</span> i=0; i&lt;m_oParams.vpOutputs.size(); i++ )</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">const</span> <a class="code" href="class_c_v_a_hardware_output.html">CVAHardwareOutput</a>* pTargetOutput = m_oParams.vpOutputs[i];</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">if</span>( pTargetOutput == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="_v_a_exception_8h.html#a3a805cf8bf0cf174d4d9f33e19be5cfc">VA_EXCEPT2</a>( INVALID_PARAMETER, <span class="stringliteral">&quot;Unrecognized output &#39;&quot;</span>+pTargetOutput-&gt;<a class="code" href="class_c_v_a_hardware_output.html#a2e834f88df739709ebd0f5a6bff6c31b">sIdentifier</a>+<span class="stringliteral">&quot;&#39; for binaural mixdown reproduction&quot;</span> );</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">if</span>( pTargetOutput-&gt;<a class="code" href="class_c_v_a_hardware_output.html#ad65f812b2425dd3019516690cc3abd01">GetPhysicalOutputChannels</a>().size() != 2 )</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="_v_a_exception_8h.html#a3a805cf8bf0cf174d4d9f33e19be5cfc">VA_EXCEPT2</a>( INVALID_PARAMETER, <span class="stringliteral">&quot;Expecting two channels for binaural downmix target, problem with output &#39;&quot;</span>+pTargetOutput-&gt;<a class="code" href="class_c_v_a_hardware_output.html#a2e834f88df739709ebd0f5a6bff6c31b">sIdentifier</a>+<span class="stringliteral">&quot;&#39; detected&quot;</span> );</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; m_vpTargetOutputs.push_back( pTargetOutput );</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Virtual loudspeaker output</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; std::string sVirtualOutput;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; conf.ReqString( <span class="stringliteral">&quot;VirtualOutput&quot;</span>, sVirtualOutput );</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; m_pVirtualOutput = m_oParams.pCore-&gt;GetCoreConfig()-&gt;oHardwareSetup.GetOutput( sVirtualOutput );</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span>( m_pVirtualOutput == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <a class="code" href="_v_a_exception_8h.html#a3a805cf8bf0cf174d4d9f33e19be5cfc">VA_EXCEPT2</a>( INVALID_PARAMETER, <span class="stringliteral">&quot;Unrecognized virtual output &#39;&quot;</span>+sVirtualOutput+<span class="stringliteral">&quot;&#39; for binaural mixdown reproduction&quot;</span> );</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// Decoder input (B-Format with implicit channels)</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; m_pDecoderMatrixPatchBay = <span class="keyword">new</span> ITAStreamPatchbay( dSampleRate, iBlockLength );</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; m_pDecoderMatrixPatchBay-&gt;AddInput( GetNumInputChannels() );</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="comment">// Decoder output (N-channel loudspeaker)</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; m_pDecoderMatrixPatchBay-&gt;AddOutput( GetNumVirtualLoudspeaker() );</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; m_pdsStreamFilter = <span class="keyword">new</span> CMixdownStreamFilter( GetNumVirtualLoudspeaker(), dSampleRate, iBlockLength, m_iHRIRFilterLength );</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; m_pdsStreamFilter-&gt;pdsInput = m_pDecoderMatrixPatchBay-&gt;GetOutputDatasource( 0 );</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordtype">double</span> dYInv[9][25] =</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; { 0.141479, 0.141920, 0.141646, 0.141830, 0.142275, 0.141479, 0.141526, 0.141477, 0.141646, 0.141477, 0.141994, 0.142275, 0.142275, 0.141994, 0.141526, 0.141646, 0.141830, 0.141526, 0.141994, 0.141479, 0.141477, 0.141920, 0.142466, 0.141830, 0.141920 },</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; { 0.005941, 0.000089, 0.086866, -0.289171, -0.218760, 0.132279, -0.048748, 0.071201, -0.185809, -0.181762, 0.034672, -0.097372, -0.227303, 0.268540, -0.043764, -0.167073, -0.026226, 0.231909, 0.143544, -0.214299, 0.160602, 0.253240, 0.208520, -0.056470, 0.159354 },</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; { 0.290269, -0.120293, 0.057773, 0.017307, 0.127976, -0.149033, -0.246478, -0.271526, 0.204262, 0.037630, 0.059254, 0.035368, -0.077298, 0.084189, 0.205663, -0.219915, 0.224294, 0.018744, -0.214181, -0.129190, 0.225973, -0.132183, -0.033016, -0.182721, 0.187134 },</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; { -0.010309, 0.259113, -0.259466, 0.048463, -0.121716, -0.211398, 0.104138, -0.083419, 0.044248, 0.226498, 0.275812, -0.261374, -0.146311, 0.039797, 0.172511, -0.043928, -0.187809, -0.140852, 0.119610, 0.147593, -0.094330, -0.002682, 0.203135, -0.222917, 0.145594 },</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; { 0.003282, -0.006696, -0.269060, -0.131720, 0.296452, -0.310102, -0.063386, -0.049882, -0.103034, -0.428107, 0.094691, 0.284039, 0.372584, 0.114170, -0.092901, 0.073076, 0.056890, -0.381878, 0.184781, -0.325510, -0.157803, -0.006838, 0.444594, 0.142130, 0.260228 },</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; { 0.006189, -0.003088, 0.059091, -0.061678, -0.317678, -0.218363, 0.141425, -0.209619, -0.439036, -0.085531, 0.030327, -0.038565, 0.201335, 0.253543, -0.105321, 0.428546, -0.068044, 0.051366, -0.347849, 0.314950, 0.398489, -0.373260, -0.072262, 0.118783, 0.336251 },</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; { 0.519905, -0.128956, -0.222463, -0.253086, -0.095566, -0.071242, 0.363030, 0.423903, 0.166847, -0.253144, -0.231166, -0.242859, -0.197860, -0.179531, 0.179474, 0.223870, 0.180918, -0.239684, 0.189199, -0.092858, 0.186994, -0.092435, -0.250168, 0.034298, 0.082579 },</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; { -0.009086, -0.352444, -0.165782, 0.007717, -0.177053, 0.316863, -0.292659, 0.226190, 0.099659, 0.096699, 0.185697, -0.105388, 0.131534, 0.030299, 0.408122, 0.113469, -0.438948, -0.030252, -0.278323, -0.207655, -0.222219, 0.016649, -0.070396, 0.420575, 0.296734 },</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; { -0.012261, 0.367459, 0.351366, -0.428608, -0.189546, 0.145810, 0.047338, -0.002382, -0.187556, 0.115177, 0.413844, 0.336094, -0.171487, -0.398253, 0.158751, -0.155985, 0.188937, -0.192006, -0.025891, -0.117003, -0.096159, -0.357402, -0.011634, 0.237909, -0.016513 },</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; };</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">//if (m_iAmbisonicsTruncationOrder == 3)</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">//{</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="comment">/* { double dYInv[16][12] =</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="comment"> { 0.1935, 0.1935, 0.1935, 0.1935, 0.2222, 0.2222, 0.2222, 0.2222, 0.2386, 0.2386, 0.2386, 0.2386 },</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="comment"> { 0.5226, -0.5226, -0.5226, 0.5226, -0.0000, -0.6052, 0.0000, 0.6052, -0.0000, -0.6203, 0.0000, 0.6203 },</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="comment"> { -0.0083, -0.0083, -0.0083, -0.0083, 0.6265, 0.6265, 0.6265, 0.6265, -0.5964, -0.5964, -0.5964, -0.5964 },</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment"> { 0.5226, 0.5226, -0.5226, -0.5226, 0.6052, -0.0000, -0.6052, -0.0000, 0.6203, 0.0000, -0.6203, -0.0000 },</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment"> { 1.3985, -1.3985, 1.3985, -1.3985, 0.0000, -0.0000, -0.0000, 0.0000, -0.0000, -0.0000, -0.0000, -0.0000 },</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> { 0.0072, -0.0072, -0.0072, 0.0072, -0.0000, -2.0462, 0.0000, 2.0462, 0.0000, 2.0034, 0.0000, -2.0034 },</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment"> { -0.4886, -0.4886, -0.4886, -0.4886, -0.1783, -0.1783, -0.1783, -0.1783, -0.1914, -0.1914, -0.1914, -0.1914 },</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment"> { 0.0072, 0.0072, -0.0072, -0.0072, 2.0462, 0.0000, -2.0462, 0.0000, -2.0034, 0.0000, 2.0034, -0.0000 },</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="comment"> { -0.0000, 0.0000, 0.0000, -0.0000, 0.7820, -0.7820, 0.7820, -0.7820, 0.8396, -0.8396, 0.8396, -0.8396 },</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="comment"> { 1.5412, -1.5412, -1.5412, 1.5412, -0.0000, 1.1505, 0.0000, -1.1505, -0.0000, 1.3099, 0.0000, -1.3099 },</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="comment"> { 0.0000, 0.0000, 0.0000, -0.0000, -0.0000, 0.0000, -0.0000, 0.0000, -0.0000, -0.0000, 0.0000, 0.0000 },</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="comment"> { -0.5516, 0.5516, 0.5516, -0.5516, 0.0000, -0.3022, 0.0000, 0.3022, -0.0000, -0.1409, -0.0000, 0.1409 },</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="comment"> { 0.0004, 0.0004, 0.0004, 0.0004, -1.1248, -1.1248, -1.1248, -1.1248, 1.0876, 1.0876, 1.0876, 1.0876 },</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="comment"> { -0.5516, -0.5516, 0.5516, 0.5516, 0.3022, 0.0000, -0.3022, 0.0000, 0.1409, -0.0000, -0.1409, 0.0000 },</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="comment"> { -0.0000, 0.0000, 0.0000, 0.0000, 1.4519, -1.4519, 1.4519, -1.4519, -1.4043, 1.4043, -1.4043, 1.4043 },</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="comment"> { -1.5412, -1.5412, 1.5412, 1.5412, 1.1505, 0.0000, -1.1505, -0.0000, 1.3099, -0.0000, -1.3099, 0.0000 },</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="comment"> };</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="comment"> else if (m_iAmbisonicsTruncationOrder == 2)</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="comment"> double dYInv[9][12] =</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="comment"> { 0.1935, 0.1935, 0.1935, 0.1935, 0.2287, 0.2287, 0.2287, 0.2287, 0.2323, 0.2323, 0.2323, 0.2323 },</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="comment"> { 0.5348, -0.5348, -0.5348, 0.5348, 0.0000, -0.6703, -0.0000, 0.6703, -0.0000, -0.7317, 0.0000, 0.7317 },</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="comment"> { -0.0087, -0.0087, -0.0087, -0.0087, 0.5053, 0.5053, 0.5053, 0.5053, -0.4788, -0.4788, -0.4788, -0.4788 },</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="comment"> { 0.5348, 0.5348, -0.5348, -0.5348, 0.6703, 0.0000, -0.6703, -0.0000, 0.7317, -0.0000, -0.7317, -0.0000 },</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<span class="comment"> { 1.6712, -1.6712, 1.6712, -1.6712, -0.0000, 0.0000, -0.0000, 0.0000, 0.0000, -0.0000, -0.0000, -0.0000 },</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="comment"> { -0.0414, 0.0414, 0.0414, -0.0414, 0.0000, -2.4757, 0.0000, 2.4757, 0.0000, 2.3722, 0.0000, -2.3722 },</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="comment"> { -0.5839, -0.5839, -0.5839, -0.5839, -0.1921, -0.1921, -0.1921, -0.1921, -0.2490, -0.2490, -0.2490, -0.2490 },</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<span class="comment"> { -0.0414, -0.0414, 0.0414, 0.0414, 2.4757, -0.0000, -2.4757, 0.0000, -2.3722, -0.0000, 2.3722, -0.0000 },</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="comment"> { 0.0000, -0.0000, 0.0000, -0.0000, 0.9531, -0.9531, 0.9531, -0.9531, 0.9854, -0.9854, 0.9854, -0.9854 },</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="comment"> };</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="comment"> else if (m_iAmbisonicsTruncationOrder == 1)</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="comment"> double dYInv[4][12] =</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="comment"> { 0.2533, 0.2533, 0.2533, 0.2533, 0.2484, 0.2484, 0.2484, 0.2484, 0.2578, 0.2578, 0.2578, 0.2578 },</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="comment"> { 0.5940, -0.5940, -0.5940, 0.5940, -0.0000, -0.7734, 0.0000, 0.7734, -0.0000, -0.7864, 0.0000, 0.7864 },</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="comment"> { -0.0163, -0.0163, -0.0163, -0.0163, 0.5596, 0.5596, 0.5596, 0.5596, -0.5351, -0.5351, -0.5351, -0.5351 },</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="comment"> { 0.5940, 0.5940, -0.5940, -0.5940, 0.7734, 0.0000, -0.7734, 0.0000, 0.7864, -0.0000, -0.7864, -0.0000 },</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="comment"> };</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="comment"> else</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="comment"> {</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="comment"> VA_EXCEPT1(&quot;Ambisonics truncation order unknown - ATM only 1,2,3 is supported&quot;);</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="comment"> } */</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="comment">// Matrix</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i=0; i &lt; GetNumInputChannels(); i++ )</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; {</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> j=0; j &lt; GetNumVirtualLoudspeaker(); j++ )</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordtype">double</span> dGain = dYInv[i][j]; <span class="comment">// todo calculate from LS setup @mko</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; m_pDecoderMatrixPatchBay-&gt;ConnectChannels( 0, i, 0, j, dGain );</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; }</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; m_viLastHRIRIndex.resize( GetNumVirtualLoudspeaker() );</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;}</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;CVAAmbisonicsBinauralMixdownReproduction::~CVAAmbisonicsBinauralMixdownReproduction()</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;{</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keyword">delete</span> m_pdsStreamFilter;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; m_pdsStreamFilter = <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">delete</span> m_pDecoderMatrixPatchBay;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; m_pDecoderMatrixPatchBay = <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;}</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="keywordtype">void</span> CVAAmbisonicsBinauralMixdownReproduction::SetInputDatasource( ITADatasource* p )</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;{</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; m_pDecoderMatrixPatchBay-&gt;SetInputDatasource( 0, p );</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;}</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;ITADatasource* CVAAmbisonicsBinauralMixdownReproduction::GetOutputDatasource()</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;{</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordflow">return</span> m_pdsStreamFilter;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;}</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="keywordtype">int</span> CVAAmbisonicsBinauralMixdownReproduction::GetNumVirtualLoudspeaker()<span class="keyword"> const</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keywordtype">size_t</span> iSize = m_pVirtualOutput-&gt;vpDevices.size();</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keywordflow">return</span> int( iSize );</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;}</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;<span class="keywordtype">int</span> CVAAmbisonicsBinauralMixdownReproduction::GetNumInputChannels()<span class="keyword"> const</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keywordflow">return</span> ( ( m_iAmbisonicsTruncationOrder + 1 ) * ( m_iAmbisonicsTruncationOrder + 1 ) );</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;}</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;<span class="keywordtype">void</span> CVAAmbisonicsBinauralMixdownReproduction::SetTrackedListener( <span class="keyword">const</span> <span class="keywordtype">int</span> iID )</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;{</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; m_iListenerID = iID;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;}</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;<span class="keywordtype">void</span> CVAAmbisonicsBinauralMixdownReproduction::UpdateScene( <a class="code" href="class_c_v_a_scene_state.html">CVASceneState</a>* pNewState )</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;{</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keywordflow">if</span>( m_iListenerID == -1 ) </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <a class="code" href="class_c_v_a_listener_state.html">CVAListenerState</a>* pLIstenerState( pNewState-&gt;<a class="code" href="class_c_v_a_scene_state.html#a32028269635f6d5ad8ecb088459f36e6">GetListenerState</a>( m_iListenerID ) );</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordflow">if</span>( pLIstenerState == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keyword">const</span> <a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html">CVADirectivityDAFFHRIR</a>* pHRIRSet = ( <a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html">CVADirectivityDAFFHRIR</a>*) pLIstenerState-&gt;GetDirectivity();</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keywordflow">if</span>( pHRIRSet == <span class="keyword">nullptr</span> )</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="code" href="class_v_a_vec3.html">VAVec3</a> vListenerPos, vListenerView, vListenerUp;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; m_oParams.pCore-&gt;GetSoundReceiverRealWorldPositionOrientationVU( m_iListenerID, vListenerPos, vListenerView, vListenerUp );</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i=0; i&lt;GetNumVirtualLoudspeaker(); i++ )</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; {</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <span class="keywordtype">int</span> iIndexLeft = 2*i+0;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keywordtype">int</span> iIndexRight = 2*i+1;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keyword">const</span> <a class="code" href="class_c_v_a_hardware_device.html">CVAHardwareDevice</a>* pDevice( m_pVirtualOutput-&gt;vpDevices[i] );</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keywordtype">double</span> dAzimuth = <a class="code" href="_v_a_utils_8cpp.html#aacea946ab673a8426554b88e29e9840b">GetAzimuthOnTarget_DEG</a>( vListenerPos, vListenerView, vListenerUp, pDevice-&gt;vPos );</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <span class="keywordtype">double</span> dElevation = <a class="code" href="_v_a_utils_8cpp.html#a1ca7f9ec5f0195196a74c90ac0585633">GetElevationOnTarget_DEG</a>( vListenerPos, vListenerView, vListenerUp, pDevice-&gt;vPos );</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="keywordtype">double</span> dDistance = ( pDevice-&gt;vPos - vListenerPos ).Length();</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="comment">// Re-init temp buffer to match with current HRIR length</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <span class="keywordtype">int</span> iHRIRFilterLength = pHRIRSet-&gt;<a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad42d58fc6aad0aa4ae6c7a173e3098fa">GetProperties</a>()-&gt;<a class="code" href="class_c_v_a_h_r_i_r_properties.html#a71181b9d345ce3b7473f8a08b7cad63a">iFilterLength</a>;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="keywordflow">if</span>( m_sfHRIRTemp.length() != iHRIRFilterLength )</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; m_sfHRIRTemp.init( 2, iHRIRFilterLength, <span class="keyword">false</span> );</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="keywordtype">int</span> iIndex;</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; pHRIRSet-&gt;<a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#ad375c520db4663dace50799fd91fb027">GetNearestNeighbour</a>( <span class="keywordtype">float</span>( dAzimuth ), <span class="keywordtype">float</span>( dElevation ), &amp;iIndex );</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <span class="comment">// Skip if still same HRIR</span></div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="keywordflow">if</span>( iIndex == m_viLastHRIRIndex[i] )</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; pHRIRSet-&gt;<a class="code" href="class_c_v_a_directivity_d_a_f_f_h_r_i_r.html#a97d108b080faf58747d1177adcf32e11">GetHRIRByIndex</a>( &amp;m_sfHRIRTemp, iIndex, 0 );</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; m_viLastHRIRIndex[i] = iIndex;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; ITAUPFilter* pFilterChL = m_pdsStreamFilter-&gt;pFilterPool-&gt;RequestFilter();</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; ITAUPFilter* pFilterChR = m_pdsStreamFilter-&gt;pFilterPool-&gt;RequestFilter();</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; </div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; <span class="keywordtype">int</span> iLoadFilter = (std::min)( m_iHRIRFilterLength, iHRIRFilterLength );</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; pFilterChL-&gt;Zeros();</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; pFilterChL-&gt;Load( m_sfHRIRTemp[0].data(), iLoadFilter );</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; pFilterChR-&gt;Zeros();</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; pFilterChR-&gt;Load( m_sfHRIRTemp[1].data(), iLoadFilter );</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <span class="comment">// Update</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; m_pdsStreamFilter-&gt;vpConvolver[iIndexLeft]-&gt;ExchangeFilter( pFilterChL );</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; m_pdsStreamFilter-&gt;vpConvolver[iIndexRight]-&gt;ExchangeFilter( pFilterChR );</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; pFilterChL-&gt;Release();</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; pFilterChR-&gt;Release();</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; }</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; m_pdsStreamFilter-&gt;pTrigger-&gt;trigger();</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160;}</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160;<span class="comment">// --= Stream filter =--</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;CMixdownStreamFilter::CMixdownStreamFilter( <span class="keywordtype">int</span> iNumLoudspeaker, <span class="keywordtype">double</span> dSampleRate, <span class="keywordtype">int</span> iBlockLength, <span class="keywordtype">int</span> iMaxFilterLength ) : ITADatasourceRealization( 2, dSampleRate, iBlockLength )</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; , pdsInput( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; , pFilterPool( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; , pTrigger( <a class="code" href="_v_a_base_definitions_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> )</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;{</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; pFilterPool = <span class="keyword">new</span> ITAUPFilterPool( (<span class="keywordtype">int</span>) m_uiBlocklength, iMaxFilterLength, 24 );</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; ITAUPFilter* pDirac = pFilterPool-&gt;RequestFilter();</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; pDirac-&gt;identity();</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; pTrigger = <span class="keyword">new</span> ITAUPTrigger;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i=0; i&lt; 2 * iNumLoudspeaker; i++ )</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; {</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; ITAUPConvolution* pConvolver = <span class="keyword">new</span> ITAUPConvolution( (<span class="keywordtype">int</span>) GetBlocklength(), iMaxFilterLength, pFilterPool );</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; pConvolver-&gt;SetFilterExchangeTrigger( pTrigger );</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; pConvolver-&gt;SetFilterExchangeMode( ITAUPConvolution::CROSSFADE_COSINE_SQUARE );</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; pConvolver-&gt;SetFilterCrossfadeLength( (<span class="keywordtype">int</span>) GetBlocklength() );</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; pConvolver-&gt;ExchangeFilter( pDirac );</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; vpConvolver.push_back( pConvolver );</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; pDirac-&gt;Release();</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160;</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; pTrigger-&gt;trigger();</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160;}</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;CMixdownStreamFilter::~CMixdownStreamFilter()</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160;{</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; <span class="keywordflow">for</span>( <span class="keywordtype">size_t</span> i=0; i&lt;vpConvolver.size(); i++ )</div><div class="line"><a name=