Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
bedcf734
Commit
bedcf734
authored
1 year ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Import Ansa's fix for multi-session sound
parent
00c65ca6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llaudio/llaudiodecodemgr.cpp
+5
-1
5 additions, 1 deletion
indra/llaudio/llaudiodecodemgr.cpp
indra/llaudio/llaudioengine.cpp
+10
-0
10 additions, 0 deletions
indra/llaudio/llaudioengine.cpp
with
15 additions
and
1 deletion
indra/llaudio/llaudiodecodemgr.cpp
+
5
−
1
View file @
bedcf734
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/llaudio/llaudioengine.cpp
+
10
−
0
View file @
bedcf734
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment