mirror of
https://github.com/halpz/re3.git
synced 2025-01-04 19:45:30 +00:00
Fix yet another DirectlyEnqueueSample
This commit is contained in:
parent
07a1339704
commit
145af411ab
|
@ -1406,6 +1406,10 @@ cAudioManager::GenerateIntegerRandomNumberTable()
|
||||||
void
|
void
|
||||||
cAudioManager::DirectlyEnqueueSample(uint32 sample, uint8 bank, uint32 counter, uint32 priority, uint32 freq, uint8 volume, uint8 framesToPlay, uint32 notStereo)
|
cAudioManager::DirectlyEnqueueSample(uint32 sample, uint8 bank, uint32 counter, uint32 priority, uint32 freq, uint8 volume, uint8 framesToPlay, uint32 notStereo)
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if (!m_bIsInitialised || m_nExtraSoundsEntity < 0) return;
|
||||||
|
m_sQueueSample.m_nEntityIndex = m_nExtraSoundsEntity; // not setting entity ID could cause bugs, let's use extra sounds one
|
||||||
|
#endif
|
||||||
m_sQueueSample.m_nSampleIndex = sample;
|
m_sQueueSample.m_nSampleIndex = sample;
|
||||||
m_sQueueSample.m_nBankIndex = bank;
|
m_sQueueSample.m_nBankIndex = bank;
|
||||||
m_sQueueSample.m_nCounter = counter;
|
m_sQueueSample.m_nCounter = counter;
|
||||||
|
|
Loading…
Reference in a new issue