aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llaudio/audioengine_openal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llaudio/audioengine_openal.cpp')
-rw-r--r--linden/indra/llaudio/audioengine_openal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llaudio/audioengine_openal.cpp b/linden/indra/llaudio/audioengine_openal.cpp
index a14b725..5f04d56 100644
--- a/linden/indra/llaudio/audioengine_openal.cpp
+++ b/linden/indra/llaudio/audioengine_openal.cpp
@@ -416,7 +416,7 @@ void LLAudioEngine_OpenAL::initWind()
416 mWindGen = new LLWindGen<WIND_SAMPLE_T>; 416 mWindGen = new LLWindGen<WIND_SAMPLE_T>;
417 417
418 mWindBufFreq = mWindGen->getInputSamplingRate(); 418 mWindBufFreq = mWindGen->getInputSamplingRate();
419 mWindBufSamples = llceil(mWindBufFreq * WIND_BUFFER_SIZE_SEC); 419 mWindBufSamples = llceil(mWindBufFreq * 0.05f); // 1/20th sec - WIND_BUFFER_SIZE_SEC
420 mWindBufBytes = mWindBufSamples * 2 /*stereo*/ * sizeof(WIND_SAMPLE_T); 420 mWindBufBytes = mWindBufSamples * 2 /*stereo*/ * sizeof(WIND_SAMPLE_T);
421 421
422 mWindBuf = new WIND_SAMPLE_T [mWindBufSamples * 2 /*stereo*/]; 422 mWindBuf = new WIND_SAMPLE_T [mWindBufSamples * 2 /*stereo*/];