Commit 67a2c6d8 authored by Lucas Moesch's avatar Lucas Moesch
Browse files

Added binaural listener to cmake.

parent fef98ce2
#include "VABinauralListener.h"
VABinauralListener::VABinauralListener()
{
}
VABinauralListener::~VABinauralListener()
{
}
#ifndef IW_VACORE_BINAURALLISTENER
#define IW_VACORE_BINAURALLISTENER
// VA includes
#include <VA.h>
#include <VAPoolObject.h>
class VABinauralListener : public CVAPoolObject
{
public:
virtual ~VABinauralListener();
VABinauralListener();
};
#endif // IW_VACORE_BINAURALListener
# $Id:$
set( RelativeDir "src/Rendering/Binaural/RealTime/Utils/BinauralListener" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils\\BinauralListener" )
set( DirFiles
VABinauralListener.cpp
VABinauralListener.h
_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
# $Id:$
set( RelativeDir "src/Rendering/Binaural/Realtime/Utils" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\Realtime\\Utils" )
set( SubDirs BinauralListener )
set( DirFiles
_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( SubDirFiles "" )
foreach( Dir ${SubDirs} )
list( APPEND SubDirFiles "${RelativeDir}/${Dir}/_SourceFiles.cmake" )
endforeach()
foreach( SubDirFile ${SubDirFiles} )
include( ${SubDirFile} )
endforeach()
#include "VABinauralRealTimeRenderer.h"
// VA Includes
#include <VA.h>
#include "../../../Utils/VAUtils.h"
// VA Core Includes
#include "../../../Scene/VAScene.h"
VABinauralRealTimeRenderer::VABinauralRealTimeRenderer( const CVAAudioRendererInitParams& oParams_ ) :
_oParams(oParams_),
class VABinauralClusterEngine : public CVAObject
{
public:
virtual ~VABinauralClusterEngine();
};
VABinauralRealTimeRenderer::VABinauralRealTimeRenderer( const CVAAudioRendererInitParams& params_ ) :
_params(params_),
_newSceneState(NULL),
_curSceneState(NULL),
_indicateReset(false),
_resetAck(false)
{
CVAConfigInterpreter conf(*_oParams.pConfig);
CVAConfigInterpreter conf(*_params.pConfig);
}
......@@ -19,3 +30,25 @@ VABinauralRealTimeRenderer::VABinauralRealTimeRenderer( const CVAAudioRendererIn
VABinauralRealTimeRenderer::~VABinauralRealTimeRenderer()
{
}
void
VABinauralRealTimeRenderer::processStream(const ITAStreamInfo* streamInfo)
{
}
void
VABinauralRealTimeRenderer::updateScene(CVASceneState* newSceneState)
{
assert(newSceneState);
_newSceneState = newSceneState;
if (_newSceneState == _curSceneState)
return;
// Neue Szene referenzieren (gegen Freigabe sperren)
_newSceneState->AddReference();
// Unterschiede ermitteln: Neue Szene vs. alte Szene
CVASceneStateDiff diff;
_newSceneState->Diff(_curSceneState, &diff);
}
#ifndef IW_VACORE_BINAURALREALTIMERENDERER
#define IW_VACORE_BINAURALREALTIMERENDERER
// VA Includes
#include <VA.h>
// VA includes
#include "../../VAAudioRenderer.h"
// ITA includes
#include <ITADataSourceRealization.h>
......@@ -21,7 +18,7 @@ public:
void processStream( const ITAStreamInfo* pStreamInfo );
void updateScene(CVASceneState*);
void updateScene(CVASceneState* newSceneState );
// Resets the renderer to it's initial state
void reset();
......@@ -30,7 +27,7 @@ public:
ITADatasource* GetOutputDatasource();
private:
const CVAAudioRendererInitParams _oParams;
const CVAAudioRendererInitParams _params;
CVASceneState* _newSceneState;
CVASceneState* _curSceneState;
......
......@@ -2,12 +2,14 @@
set( RelativeDir "src/Rendering/Binaural/RealTime" )
set( RelativeSourceGroup "Source Files\\Rendering\\Binaural\\RealTime" )
set( SubDirs Utils )
set( DirFiles
VABinauralRealTimeRenderer.cpp
VABinauralRealTimeRenderer.h
_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
......@@ -17,3 +19,12 @@ foreach( File ${DirFiles} )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( SubDirFiles "" )
foreach( Dir ${SubDirs} )
list( APPEND SubDirFiles "${RelativeDir}/${Dir}/_SourceFiles.cmake" )
endforeach()
foreach( SubDirFile ${SubDirFiles} )
include( ${SubDirFile} )
endforeach()
......@@ -2,7 +2,7 @@
set( RelativeDir "src/Rendering" )
set( RelativeSourceGroup "Source Files\\Rendering" )
set( SubDirs Ambient Ambisonics Binaural Prototyping VBAP )
set( SubDirs Ambient Ambisonics Binaural Prototyping VBAP)
set( DirFiles
VAAudioRenderer.h
......
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