aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llaudio
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:54 -0500
committerJacek Antonelli2008-08-15 23:45:54 -0500
commitd0b03a62fd799317d5da0bd56615739ce3b5b052 (patch)
tree8bc79bbbb52e18294f62810d9fa66ce136f90e2d /linden/indra/llaudio
parentSecond Life viewer sources 1.20.8 (diff)
downloadmeta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.zip
meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.gz
meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.bz2
meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.xz
Second Life viewer sources 1.20.9
Diffstat (limited to 'linden/indra/llaudio')
-rw-r--r--linden/indra/llaudio/audioengine.cpp2
-rw-r--r--linden/indra/llaudio/audioengine_fmod.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/llaudio/audioengine.cpp b/linden/indra/llaudio/audioengine.cpp
index 021c940..05636c1 100644
--- a/linden/indra/llaudio/audioengine.cpp
+++ b/linden/indra/llaudio/audioengine.cpp
@@ -1621,6 +1621,8 @@ LLAudioData::LLAudioData(const LLUUID &uuid) :
1621 // This is a null sound. 1621 // This is a null sound.
1622 return; 1622 return;
1623 } 1623 }
1624 llassert_always(gAudiop) ;
1625 llassert_always(gAssetStorage) ;
1624 1626
1625 if (gAudiop->hasDecodedFile(uuid)) 1627 if (gAudiop->hasDecodedFile(uuid))
1626 { 1628 {
diff --git a/linden/indra/llaudio/audioengine_fmod.cpp b/linden/indra/llaudio/audioengine_fmod.cpp
index 271074e..cc2042d 100644
--- a/linden/indra/llaudio/audioengine_fmod.cpp
+++ b/linden/indra/llaudio/audioengine_fmod.cpp
@@ -538,7 +538,7 @@ void LLAudioChannelFMOD::update3DPosition()
538 float_pos.setVec(mCurrentSourcep->getPositionGlobal()); 538 float_pos.setVec(mCurrentSourcep->getPositionGlobal());
539 if (!FSOUND_3D_SetAttributes(mChannelID, float_pos.mV, mCurrentSourcep->getVelocity().mV)) 539 if (!FSOUND_3D_SetAttributes(mChannelID, float_pos.mV, mCurrentSourcep->getVelocity().mV))
540 { 540 {
541 llwarns << "LLAudioChannelFMOD::update3DPosition error: " << FMOD_ErrorString(FSOUND_GetError()) << llendl; 541 LL_DEBUGS("FMOD") << "LLAudioChannelFMOD::update3DPosition error: " << FMOD_ErrorString(FSOUND_GetError()) << LL_ENDL;
542 } 542 }
543 } 543 }
544} 544}
@@ -576,7 +576,7 @@ void LLAudioChannelFMOD::cleanup()
576 //llinfos << "Cleaning up channel: " << mChannelID << llendl; 576 //llinfos << "Cleaning up channel: " << mChannelID << llendl;
577 if (!FSOUND_StopSound(mChannelID)) 577 if (!FSOUND_StopSound(mChannelID))
578 { 578 {
579 llwarns << "LLAudioChannelFMOD::cleanup error: " << FMOD_ErrorString(FSOUND_GetError()) << llendl; 579 LL_DEBUGS("FMOD") << "LLAudioChannelFMOD::cleanup error: " << FMOD_ErrorString(FSOUND_GetError()) << llendl;
580 } 580 }
581 581
582 mCurrentBufferp = NULL; 582 mCurrentBufferp = NULL;