mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-01 01:25:55 +00:00
audio16 fixes for review
This commit is contained in:
parent
58ec4b2157
commit
d13afe5cc1
|
@ -2777,20 +2777,16 @@ cAudioManager::ProcessActiveQueues()
|
||||||
sample.m_nSampleIndex == m_asActiveSamples[j].m_nSampleIndex) {
|
sample.m_nSampleIndex == m_asActiveSamples[j].m_nSampleIndex) {
|
||||||
if (sample.m_nLoopCount) {
|
if (sample.m_nLoopCount) {
|
||||||
if (m_FrameCounter & 1) {
|
if (m_FrameCounter & 1) {
|
||||||
if (!(j & 1)) { flag = 0; }
|
flag = !!(j & 1);
|
||||||
flag = 1;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!(j & 1))
|
flag = !(j & 1);
|
||||||
flag = 1;
|
|
||||||
else
|
|
||||||
flag = 0;
|
|
||||||
}
|
}
|
||||||
if (flag && !SampleManager.GetChannelUsedFlag(j)) {
|
if (flag && !SampleManager.GetChannelUsedFlag(j)) {
|
||||||
sample.m_bLoopEnded = 1;
|
sample.m_bLoopEnded = 1;
|
||||||
m_asActiveSamples[j].m_bLoopEnded = 1;
|
m_asActiveSamples[j].m_bLoopEnded = 1;
|
||||||
m_asActiveSamples[j].m_nSampleIndex = NO_SAMPLE;
|
m_asActiveSamples[j].m_nSampleIndex = NO_SAMPLE;
|
||||||
m_asActiveSamples[j].m_nEntityIndex = -5;
|
m_asActiveSamples[j].m_nEntityIndex = AEHANDLE_NONE;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue