mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 16:09:59 +00:00
More queue handling adjustments
This commit is contained in:
parent
c975dab7c3
commit
e095d51999
1 changed files with 11 additions and 2 deletions
|
@ -769,7 +769,10 @@ namespace MWSound
|
|||
for(SoundBufferRefPair &snd : snditer->second)
|
||||
mOutput->finishSound(snd.first);
|
||||
}
|
||||
SaySoundMap::iterator sayiter = mActiveSaySounds.find(ptr);
|
||||
SaySoundMap::iterator sayiter = mSaySoundsQueue.find(ptr);
|
||||
if(sayiter != mSaySoundsQueue.end())
|
||||
mOutput->finishStream(sayiter->second);
|
||||
sayiter = mActiveSaySounds.find(ptr);
|
||||
if(sayiter != mActiveSaySounds.end())
|
||||
mOutput->finishStream(sayiter->second);
|
||||
}
|
||||
|
@ -785,6 +788,12 @@ namespace MWSound
|
|||
}
|
||||
}
|
||||
|
||||
for(SaySoundMap::value_type &snd : mSaySoundsQueue)
|
||||
{
|
||||
if(!snd.first.isEmpty() && snd.first != MWMechanics::getPlayer() && snd.first.getCell() == cell)
|
||||
mOutput->finishStream(snd.second);
|
||||
}
|
||||
|
||||
for(SaySoundMap::value_type &snd : mActiveSaySounds)
|
||||
{
|
||||
if(!snd.first.isEmpty() && snd.first != MWMechanics::getPlayer() && snd.first.getCell() == cell)
|
||||
|
@ -1086,7 +1095,7 @@ namespace MWSound
|
|||
}
|
||||
|
||||
SaySoundMap::iterator sayiter = mActiveSaySounds.begin();
|
||||
while (sayiter != mActiveSaySounds.end())
|
||||
while(sayiter != mActiveSaySounds.end())
|
||||
{
|
||||
MWWorld::ConstPtr ptr = sayiter->first;
|
||||
Stream *sound = sayiter->second;
|
||||
|
|
Loading…
Reference in a new issue