summaryrefslogtreecommitdiffstats
path: root/src/audio/PolRadio.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-24 13:58:41 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-24 13:58:41 +0200
commitabbfb09a64e4d9188cb9ef17733693d43e9a51ce (patch)
tree2c3276ed78309d5a059e83c6eb042cce95bf3d60 /src/audio/PolRadio.cpp
parentMake ped comments update position and volume + fix cPedComments::Process (diff)
downloadre3-abbfb09a64e4d9188cb9ef17733693d43e9a51ce.tar
re3-abbfb09a64e4d9188cb9ef17733693d43e9a51ce.tar.gz
re3-abbfb09a64e4d9188cb9ef17733693d43e9a51ce.tar.bz2
re3-abbfb09a64e4d9188cb9ef17733693d43e9a51ce.tar.lz
re3-abbfb09a64e4d9188cb9ef17733693d43e9a51ce.tar.xz
re3-abbfb09a64e4d9188cb9ef17733693d43e9a51ce.tar.zst
re3-abbfb09a64e4d9188cb9ef17733693d43e9a51ce.zip
Diffstat (limited to 'src/audio/PolRadio.cpp')
-rw-r--r--src/audio/PolRadio.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/PolRadio.cpp b/src/audio/PolRadio.cpp
index da09eeb9..49b8368c 100644
--- a/src/audio/PolRadio.cpp
+++ b/src/audio/PolRadio.cpp
@@ -236,7 +236,11 @@ cAudioManager::ServicePoliceRadioChannel(uint8 wantedLevel)
default: freq = SampleManager.GetSampleBaseFrequency(sample); break;
}
PoliceChannelFreq = freq;
+#ifdef USE_TIME_SCALE_FOR_AUDIO
+ SampleManager.SetChannelFrequency(CHANNEL_POLICE_RADIO, freq * CTimer::GetTimeScale());
+#else
SampleManager.SetChannelFrequency(CHANNEL_POLICE_RADIO, freq);
+#endif
SampleManager.SetChannelVolume(CHANNEL_POLICE_RADIO, 100);
SampleManager.SetChannelPan(CHANNEL_POLICE_RADIO, 63);
#ifndef GTA_PS2