mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 17:58:59 +00:00
Fix setting sampleIndex
This commit is contained in:
parent
67d93dc28d
commit
6cf4a6af6c
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ cAudioManager::AddSampleToRequestedQueue()
|
||||||
calculatedVolume = m_sQueueSample.field_16 * (maxVolume - m_sQueueSample.m_bVolume);
|
calculatedVolume = m_sQueueSample.field_16 * (maxVolume - m_sQueueSample.m_bVolume);
|
||||||
sampleIndex = m_bSampleRequestQueuesStatus[m_bActiveSampleQueue];
|
sampleIndex = m_bSampleRequestQueuesStatus[m_bActiveSampleQueue];
|
||||||
if(sampleIndex >= m_bActiveSamples) {
|
if(sampleIndex >= m_bActiveSamples) {
|
||||||
sampleIndex = *(&m_asSamples[1][26].field_91 + m_bActiveSamples +
|
sampleIndex =
|
||||||
27 * m_bActiveSampleQueue);
|
m_abSampleQueueIndexTable[m_bActiveSampleQueue][m_bActiveSamples - 1];
|
||||||
if(m_asSamples[m_bActiveSampleQueue][sampleIndex].calculatedVolume <=
|
if(m_asSamples[m_bActiveSampleQueue][sampleIndex].calculatedVolume <=
|
||||||
calculatedVolume)
|
calculatedVolume)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue