Commit c43e3fe1 authored by lmoesch's avatar lmoesch
Browse files

WIP

parent f0cdeb72
......@@ -9,42 +9,49 @@
using namespace std;
int main( int, char** )
CVAStruct GetCoreConfig()
{
IVAInterface* pCore = NULL;
try
{
CVAStruct oConfig;
CVAStruct oConfig;
CVAStruct oSectionDebug;
oSectionDebug["loglevel"] = 5;
oConfig["debug"] = oSectionDebug;
CVAStruct oSectionDriver;
oSectionDriver["driver"] = "Portaudio";
oConfig["audio driver"] = oSectionDriver;
CVAStruct oDevice1;
oDevice1["type"] = "HP";
oDevice1["channels"] = "1,2";
oConfig["OutputDevice:MyHP"] = oDevice1;
CVAStruct oSectionDebug;
oSectionDebug[ "loglevel" ] = 1;
oConfig[ "debug" ] = oSectionDebug;
CVAStruct oOutput1;
oOutput1["devices"] = "MyHP";
oConfig["Output:MyDesktopHP"] = oOutput1;
CVAStruct oSectionDriver;
oSectionDriver[ "driver" ] = "Portaudio";
oConfig[ "audio driver" ] = oSectionDriver;
CVAStruct oReproduction1;
oReproduction1["class"] = "Talkthrough";
oReproduction1["outputs"] = "MyDesktopHP";
oConfig["Reproduction:Talkthrough"] = oReproduction1;
CVAStruct oDevice1;
oDevice1[ "type" ] = "HP";
oDevice1[ "channels" ] = "1,2";
oConfig[ "OutputDevice:MyHP" ] = oDevice1;
CVAStruct oRenderer1;
oRenderer1["class"] = "BinauralRealTime";
oRenderer1["Reproductions"] = "MyTalkthroughHeadphones";
oConfig["Renderer:BRT_CoreTest"] = oRenderer1;
CVAStruct oOutput1;
oOutput1[ "devices" ] = "MyHP";
oConfig[ "Output:MyDesktopHP" ] = oOutput1;
CVAStruct oReproduction;
oReproduction[ "class" ] = "Talkthrough";
oReproduction[ "outputs" ] = "MyDesktopHP";
oConfig[ "Reproduction:MyTalkthroughHeadphones" ] = oReproduction;
return oConfig;
}
int main( int, char** )
{
IVAInterface* pCore = NULL;
try
{
CVAStruct oRenderer;
oRenderer[ "class" ] = "BinauralRealTime";
oRenderer[ "outputs" ] = "MyTalkthroughHeadphones";
oRenderer[ "outputgroup" ] = "MyDesktopHP";
oConfig[ "Renderer:BenchmarkDummyRenderer" ] = oRenderer;
pCore = VACore::CreateCoreInstance( oConfig );
pCore = VACore::CreateCoreInstance( GetCoreConfig());
pCore->Initialize();
int iIterations = 100;
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime/Utils/BinauralClusterEngine" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils\\BinauralClusterEngine" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\Realtime\\Utils\\BinauralClusterEngine" )
set( DirFiles
VABinauralClusterEngine.cpp
......
......@@ -5,7 +5,7 @@
#include <VA.h>
#include <VAPoolObject.h>
#include "../../../../../VACoreImpl.h"
#include "../../../../../core/core.h"
#include "../../../../../Motion/VAMotionModelBase.h"
#include "../../../../../Motion/VASharedMotionModel.h"
#include "../../../../../Scene/VAScene.h"
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime/Utils/BinauralListener" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils\\BinauralListener" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\Realtime\\Utils\\BinauralListener" )
set( DirFiles
VABinauralListener.cpp
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime/Utils/BinauralSoundSource" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils\\BinauralSoundSource" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\Realtime\\Utils\\BinauralSoundSource" )
set( DirFiles
VABinauralSoundSource.cpp
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime/Utils/BinauralTimeOfArrivalEstimator" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils\\BinauralTimeOfArrivalEstimator" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\Realtime\\Utils\\BinauralTimeOfArrivalEstimator" )
set( DirFiles
VABinauralTOAEstimator.cpp
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime/Utils/Config" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils\\Config" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\Realtime\\Utils\\Config" )
set( DirFiles
VAConfig.cpp
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime/Utils/RelationMetrics" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils\\RelationMetrics" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\Realtime\\Utils\\RelationMetrics" )
set( DirFiles
VARelationMetrics.cpp
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/Realtime/Utils" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\Realtime\\Utils" )
set( SubDirs BinauralListener BinauralClusterEngine BinauralSoundSource BinauralTimeOfArrivalEstimator RelationMetrics Config)
set( DirFiles
......
......@@ -3,7 +3,7 @@
// VA Includes
#include <VA.h>
#include <VAObjectPool.h>
#include "../../../VACoreImpl.h"
#include "../../../core/core.h"
#include "../../../Utils/VAUtils.h"
// VA Core Includes
......
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\RealTime" )
set( RelativeSourceGroup "src\\Rendering\\Binaural\\RealTime" )
set( SubDirs Utils )
set( DirFiles
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment