Sampling rate is corrected

This commit is contained in:
yvt 2013-12-15 23:20:45 +09:00
parent 66edb6e340
commit 50705df377

View File

@ -368,7 +368,7 @@ namespace spades {
YsrContext::InitParam param;
param.numThreads = s_ysrNumThreads;
param.samplingRate = 44100.;
param.samplingRate = static_cast<double>(sdlAudioDevice->spec.freq);
param.spatializerCallback = reinterpret_cast<void(*)(const YsrContext::YVec3 *, YsrContext::SpatializeResult *, void *)>(SpatializeCallback);
param.spatializerUserData = this;
driver->Init(param);