#include "VABinauralListener.h" VABinauralListener::VABinauralListener(const CVACoreImpl* core, const config_t& conf) : _core(core), _conf(conf) {}; VABinauralListener::~VABinauralListener() { } void VABinauralListener::PreRequest() { CVABasicMotionModel::Config listenerMotionConf; listenerMotionConf.bLogEstimatedOutputEnabled = _conf.motionModelLogEstimated; listenerMotionConf.bLogInputEnabled = _conf.motionModelLogInput; listenerMotionConf.dWindowDelay = _conf.motionModelWindowDelay; listenerMotionConf.dWindowSize = _conf.motionModelWindowSize; listenerMotionConf.iNumHistoryKeys = _conf.motionModelNumHistoryKeys; output = new ITASampleFrame( 2, _core->GetCoreConfig()->oAudioDriverConfig.iBuffersize, true ); motionModel = new CVASharedMotionModel(new CVABasicMotionModel(listenerMotionConf), true); // TODO: load HRTF from some kind of config toaEstimator = new VABinauralTOAEstimator(); data = nullptr; } void VABinauralListener::PreRelease() { delete motionModel; }