diff options
| author | Merov Linden <merov@lindenlab.com> | 2014-05-19 21:43:42 -0700 |
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2014-05-19 21:43:42 -0700 |
| commit | 51865f4e94885471dba0402b33f0b11b72bbdb30 (patch) | |
| tree | 3097df858573468d674ad5e4dee0e795cd498bc8 /indra/newview/llpreviewsound.cpp | |
| parent | 3eb53f5426a710b0403a84bd6849fe48553194eb (diff) | |
| parent | 644ca6a0f8a7759119814f88df93b8e838321a12 (diff) | |
Pull merge from lindenlab/viewer-release
Diffstat (limited to 'indra/newview/llpreviewsound.cpp')
| -rwxr-xr-x | indra/newview/llpreviewsound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llpreviewsound.cpp b/indra/newview/llpreviewsound.cpp index 33d2d015ad..11b81a58fc 100755 --- a/indra/newview/llpreviewsound.cpp +++ b/indra/newview/llpreviewsound.cpp @@ -55,7 +55,9 @@ BOOL LLPreviewSound::postBuild() { getChild<LLUICtrl>("desc")->setValue(item->getDescription()); if (gAudiop) + { gAudiop->preloadSound(item->getAssetUUID()); // preload the sound + } } childSetAction("Sound play btn",&LLPreviewSound::playSound,this); @@ -94,6 +96,6 @@ void LLPreviewSound::auditionSound( void *userdata ) if(item && gAudiop) { LLVector3d lpos_global = gAgent.getPositionGlobal(); - gAudiop->triggerSound(item->getAssetUUID(), gAgent.getID(), SOUND_GAIN, LLAudioEngine::AUDIO_TYPE_UI, lpos_global); + gAudiop->triggerSound(item->getAssetUUID(), gAgent.getID(), SOUND_GAIN, LLAudioEngine::AUDIO_TYPE_SFX, lpos_global); } } |
