mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 15:53:45 +00:00
Fix bullet trace sound offset
This commit is contained in:
parent
7a351f18ba
commit
db1c7de125
1 changed files with 7 additions and 6 deletions
|
@ -9034,24 +9034,25 @@ cAudioManager::ProcessFrontEnd()
|
||||||
m_sQueueSample.m_nEmittingVolume = m_sQueueSample.m_nVolume;
|
m_sQueueSample.m_nEmittingVolume = m_sQueueSample.m_nVolume;
|
||||||
m_sQueueSample.m_nLoopStart = 0;
|
m_sQueueSample.m_nLoopStart = 0;
|
||||||
m_sQueueSample.m_nLoopEnd = -1;
|
m_sQueueSample.m_nLoopEnd = -1;
|
||||||
m_sQueueSample.m_fDistance = 1.0f;
|
if (stereo) {
|
||||||
if (stereo)
|
|
||||||
m_sQueueSample.m_nOffset = 0;
|
m_sQueueSample.m_nOffset = 0;
|
||||||
else {
|
m_sQueueSample.m_fDistance = 1.0f;
|
||||||
|
} else {
|
||||||
sample = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i];
|
sample = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i];
|
||||||
if (sample == SOUND_BULLETTRACE_1) {
|
if (sample == SOUND_BULLETTRACE_1) {
|
||||||
m_sQueueSample.m_nOffset = 20;
|
m_sQueueSample.m_nOffset = 20;
|
||||||
m_sQueueSample.m_nVolume = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i];
|
m_sQueueSample.m_nVolume = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i];
|
||||||
m_sQueueSample.m_nReleasingVolumeModificator = 10;
|
m_sQueueSample.m_nReleasingVolumeModificator = 10;
|
||||||
m_sQueueSample.m_fDistance = 100.0f;
|
m_sQueueSample.m_fDistance = 100.0f;
|
||||||
}
|
} else if (sample == SOUND_BULLETTRACE_2) {
|
||||||
if (sample == SOUND_BULLETTRACE_2) {
|
|
||||||
m_sQueueSample.m_nOffset = 107;
|
m_sQueueSample.m_nOffset = 107;
|
||||||
m_sQueueSample.m_nVolume = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i];
|
m_sQueueSample.m_nVolume = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i];
|
||||||
m_sQueueSample.m_nReleasingVolumeModificator = 10;
|
m_sQueueSample.m_nReleasingVolumeModificator = 10;
|
||||||
m_sQueueSample.m_fDistance = 100.0f;
|
m_sQueueSample.m_fDistance = 100.0f;
|
||||||
|
} else {
|
||||||
|
m_sQueueSample.m_nOffset = 63;
|
||||||
|
m_sQueueSample.m_fDistance = 1.0f;
|
||||||
}
|
}
|
||||||
m_sQueueSample.m_nOffset = 63;
|
|
||||||
}
|
}
|
||||||
m_sQueueSample.m_bReverbFlag = FALSE;
|
m_sQueueSample.m_bReverbFlag = FALSE;
|
||||||
m_sQueueSample.m_bRequireReflection = FALSE;
|
m_sQueueSample.m_bRequireReflection = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue