#include "VABinauralSoundSource.h" VABinauralSoundSource::VABinauralSoundSource(const config_t& conf) : conf( conf ) { vdlChL = new CITAVariableDelayLine(conf.sampleRate, conf.blockLength, 3. * conf.sampleRate, CITAVariableDelayLine::CUBIC_SPLINE_INTERPOLATION); vdlChR = new CITAVariableDelayLine(conf.sampleRate, conf.blockLength, 3. * conf.sampleRate, CITAVariableDelayLine::CUBIC_SPLINE_INTERPOLATION); } VABinauralSoundSource::~VABinauralSoundSource() { } void VABinauralSoundSource::PreRequest() { CVABasicMotionModel::Config sourceMotionConf; sourceMotionConf.bLogEstimatedOutputEnabled = conf.motionModelLogEstimated; sourceMotionConf.bLogInputEnabled = conf.motionModelLogInput; sourceMotionConf.dWindowDelay = conf.motionModelWindowDelay; sourceMotionConf.dWindowSize = conf.motionModelWindowSize; sourceMotionConf.iNumHistoryKeys = conf.motionModelNumHistoryKeys; motionModel = new CVASharedMotionModel(new CVABasicMotionModel(sourceMotionConf), true); data = nullptr; } void VABinauralSoundSource::PreRelease() { delete motionModel; }