summaryrefslogtreecommitdiffstats
path: root/src/audio/MusicManager.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-12 19:55:19 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-12 19:55:19 +0200
commita4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678 (patch)
treeeedce0da18bbd842ad29159f5bad420a8c857eeb /src/audio/MusicManager.cpp
parentmark some audio stuff and fix frameCounter (diff)
downloadre3-a4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678.tar
re3-a4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678.tar.gz
re3-a4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678.tar.bz2
re3-a4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678.tar.lz
re3-a4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678.tar.xz
re3-a4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678.tar.zst
re3-a4fd1a9f395c3ef9bf5ead3eb1eff6254b9ed678.zip
Diffstat (limited to 'src/audio/MusicManager.cpp')
-rw-r--r--src/audio/MusicManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index fde92590..4653acb7 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -374,7 +374,7 @@ cMusicManager::Service()
field_399A = true;
if (!field_3999 && !AudioManager.m_nUserPause && AudioManager.m_nPreviousUserPause)
field_3999 = true;
- if (AudioManager.field_5554 % 4 == 0) {
+ if (AudioManager.m_FrameCounter % 4 == 0) {
gNumRetunePresses = 0;
gRetuneCounter = 0;
field_2 = false;
@@ -422,7 +422,7 @@ cMusicManager::ServiceFrontEndMode()
m_nPlayingTrack = NO_TRACK;
}
- if (AudioManager.field_5554 % 4 != 0) return;
+ if (AudioManager.m_FrameCounter % 4 != 0) return;
if (!field_398F && !field_3995) {
m_nStreamedTrack = m_nFrontendTrack;
@@ -893,7 +893,7 @@ cMusicManager::ServiceTrack(CVehicle *veh, CPed *ped)
{
field_398F = true;
SampleManager.SetStreamedVolumeAndPan(0, 63, 0, 0);
- if (!(AudioManager.field_5554 & 1)) {
+ if (!(AudioManager.m_FrameCounter & 1)) {
if (field_3995 || !SampleManager.IsStreamPlaying(0)) {
bRadioStatsRecorded2 = false;
if (SampleManager.IsStreamPlaying(0)) {