aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llaudio/audioengine.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/llaudio/audioengine.cpp
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/llaudio/audioengine.cpp')
-rw-r--r--linden/indra/llaudio/audioengine.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/llaudio/audioengine.cpp b/linden/indra/llaudio/audioengine.cpp
index c5bc367..d8082aa 100644
--- a/linden/indra/llaudio/audioengine.cpp
+++ b/linden/indra/llaudio/audioengine.cpp
@@ -18,7 +18,8 @@
18 * There are special exceptions to the terms and conditions of the GPL as 18 * There are special exceptions to the terms and conditions of the GPL as
19 * it is applied to this Source Code. View the full text of the exception 19 * it is applied to this Source Code. View the full text of the exception
20 * in the file doc/FLOSS-exception.txt in this software distribution, or 20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 21 * online at
22 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 * 23 *
23 * By copying, modifying or distributing this software, you acknowledge 24 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above, 25 * that you have read and understood your obligations described above,
@@ -96,11 +97,11 @@ void LLAudioEngine::setDefaults()
96 mInternetStreamGain = 0.125f; 97 mInternetStreamGain = 0.125f;
97 mNextWindUpdate = 0.f; 98 mNextWindUpdate = 0.f;
98 99
99 for (U32 i = 0; i < LLAudioEngine::AUDIO_TYPE_COUNT; i++)
100 mSecondaryGain[i] = 1.0f;
101
102 mInternetStreamMedia = NULL; 100 mInternetStreamMedia = NULL;
103 mInternetStreamURL.clear(); 101 mInternetStreamURL.clear();
102
103 for (U32 i = 0; i < LLAudioEngine::AUDIO_TYPE_COUNT; i++)
104 mSecondaryGain[i] = 1.0f;
104} 105}
105 106
106 107
@@ -1624,7 +1625,9 @@ bool LLAudioSource::hasPendingPreloads() const
1624 for (iter = mPreloadMap.begin(); iter != mPreloadMap.end(); iter++) 1625 for (iter = mPreloadMap.begin(); iter != mPreloadMap.end(); iter++)
1625 { 1626 {
1626 LLAudioData *adp = iter->second; 1627 LLAudioData *adp = iter->second;
1627 if (!adp->hasDecodedData()) 1628 // note: a bad UUID will forever be !hasDecodedData()
1629 // but also !hasValidData(), hence the check for hasValidData()
1630 if (!adp->hasDecodedData() && adp->hasValidData())
1628 { 1631 {
1629 // This source is still waiting for a preload 1632 // This source is still waiting for a preload
1630 return true; 1633 return true;