summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewsound.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2014-05-19 18:10:45 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2014-05-19 18:10:45 -0400
commit67051b26ba41a0d0cde2c2b96bccb0972d8ffe23 (patch)
tree4856017a193dd7a559bb3021670877f2eab5d155 /indra/newview/llpreviewsound.cpp
parenta5bb8839fa24fa0b7da331f14eedccea1b44bc84 (diff)
parent644ca6a0f8a7759119814f88df93b8e838321a12 (diff)
merge
Diffstat (limited to 'indra/newview/llpreviewsound.cpp')
-rwxr-xr-xindra/newview/llpreviewsound.cpp4
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);
}
}