Skip to content
Snippets Groups Projects
Commit bedcf734 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Import Ansa's fix for multi-session sound

parent 00c65ca6
No related branches found
No related tags found
No related merge requests found
...@@ -800,7 +800,11 @@ BOOL LLAudioDecodeMgr::addDecodeRequest(const LLUUID &uuid) ...@@ -800,7 +800,11 @@ BOOL LLAudioDecodeMgr::addDecodeRequest(const LLUUID &uuid)
{ {
// Just put it on the decode queue. // Just put it on the decode queue.
LL_DEBUGS("AudioEngine") << "addDecodeRequest for " << uuid << " has local asset file already" << LL_ENDL; LL_DEBUGS("AudioEngine") << "addDecodeRequest for " << uuid << " has local asset file already" << LL_ENDL;
mImpl->mDecodeQueue.push_back(uuid); // ...only add it if it's note already in the queue
if (std::find(mImpl->mDecodeQueue.begin(), mImpl->mDecodeQueue.end(), uuid) == mImpl->mDecodeQueue.end())
{
mImpl->mDecodeQueue.push_back(uuid);
}
return TRUE; return TRUE;
} }
......
...@@ -1911,6 +1911,16 @@ bool LLAudioData::load() ...@@ -1911,6 +1911,16 @@ bool LLAudioData::load()
gAudiop->cleanupBuffer(mBufferp); gAudiop->cleanupBuffer(mBufferp);
mBufferp = NULL; mBufferp = NULL;
if (!gDirUtilp->fileExists(wav_path))
{
mHasLocalData = false;
mHasDecodedData = false;
mHasCompletedDecode = false;
mHasDecodeFailed = false;
mHasWAVLoadFailed = false;
gAudiop->preloadSound(mID);
}
return false; return false;
} }
mBufferp->mAudioDatap = this; mBufferp->mAudioDatap = this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment