mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 14:39:03 +00:00
Fix cAudioManager::AddReleasingSounds
This commit is contained in:
parent
f090708a90
commit
80b85a417c
1 changed files with 36 additions and 36 deletions
|
@ -415,11 +415,12 @@ cAudioManager::AddReleasingSounds()
|
|||
{
|
||||
bool toProcess[44];
|
||||
|
||||
for(int32 i = 0; i < m_bSampleRequestQueuesStatus[m_bActiveSampleQueue]; i++) {
|
||||
tActiveSample &sample =
|
||||
m_asSamples[!m_bActiveSampleQueue][m_abSampleQueueIndexTable[!m_bActiveSampleQueue][i]];
|
||||
if(!m_asSamples[!m_bActiveSampleQueue][m_abSampleQueueIndexTable[!m_bActiveSampleQueue][i]]
|
||||
.m_bLoopEnded) {
|
||||
int8 queue = m_bActiveSampleQueue == 0;
|
||||
|
||||
for(int32 i = 0; i < m_bSampleRequestQueuesStatus[queue]; i++) {
|
||||
tActiveSample &sample = m_asSamples[queue][m_abSampleQueueIndexTable[queue][i]];
|
||||
if (sample.m_bLoopEnded) continue;
|
||||
|
||||
toProcess[i] = false;
|
||||
for(int32 j = 0; j < m_bSampleRequestQueuesStatus[m_bActiveSampleQueue]; j++) {
|
||||
if(sample.m_nEntityIndex ==
|
||||
|
@ -453,12 +454,11 @@ cAudioManager::AddReleasingSounds()
|
|||
}
|
||||
sample.field_56 = 0;
|
||||
}
|
||||
memcpy(&m_sQueueSample, &sample, 92);
|
||||
memcpy(&m_sQueueSample, &sample, sizeof(sample));
|
||||
AddSampleToRequestedQueue();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cAudioManager::AddSampleToRequestedQueue()
|
||||
|
|
Loading…
Reference in a new issue