mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-14 16:20:34 +00:00
Mission audio cleanup + sound pause
This commit is contained in:
parent
5d5e0f62e8
commit
7a1ff3b2ad
3 changed files with 32 additions and 40 deletions
|
@ -447,9 +447,17 @@ cAudioManager::ServiceSoundEffects()
|
|||
#endif
|
||||
m_bFifthFrameFlag = (m_FrameCounter++ % 5) == 0;
|
||||
if (m_nUserPause && !m_nPreviousUserPause) {
|
||||
for (int32 i = 0; i < NUM_CHANNELS; i++)
|
||||
for (int32 i = 0; i < NUM_CHANNELS_GENERIC; i++)
|
||||
SampleManager.StopChannel(i);
|
||||
|
||||
SampleManager.SetChannelFrequency(CHANNEL_POLICE_RADIO, 0);
|
||||
SampleManager.SetChannelFrequency(CHANNEL_MISSION_AUDIO_1, 0);
|
||||
SampleManager.SetChannelFrequency(CHANNEL_MISSION_AUDIO_2, 0);
|
||||
|
||||
// ps2 code just stops the sound here for some reason
|
||||
//SampleManager.StopChannel(CHANNEL_MISSION_AUDIO_1);
|
||||
//SampleManager.StopChannel(CHANNEL_MISSION_AUDIO_2);
|
||||
|
||||
ClearRequestedQueue();
|
||||
if (m_nActiveSampleQueue) {
|
||||
m_nActiveSampleQueue = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue