summaryrefslogtreecommitdiffstats
path: root/src/audio/PolRadio.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-12 18:19:31 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:44 +0200
commit939d0c59a3994a564b2257b8d9e5ec107b1b7933 (patch)
treec765f6d491ead937dd7741133cf390aba380ced9 /src/audio/PolRadio.cpp
parentFix typo (diff)
downloadre3-939d0c59a3994a564b2257b8d9e5ec107b1b7933.tar
re3-939d0c59a3994a564b2257b8d9e5ec107b1b7933.tar.gz
re3-939d0c59a3994a564b2257b8d9e5ec107b1b7933.tar.bz2
re3-939d0c59a3994a564b2257b8d9e5ec107b1b7933.tar.lz
re3-939d0c59a3994a564b2257b8d9e5ec107b1b7933.tar.xz
re3-939d0c59a3994a564b2257b8d9e5ec107b1b7933.tar.zst
re3-939d0c59a3994a564b2257b8d9e5ec107b1b7933.zip
Diffstat (limited to 'src/audio/PolRadio.cpp')
-rw-r--r--src/audio/PolRadio.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/audio/PolRadio.cpp b/src/audio/PolRadio.cpp
index 36eb8824..4eae169d 100644
--- a/src/audio/PolRadio.cpp
+++ b/src/audio/PolRadio.cpp
@@ -134,8 +134,7 @@ cAudioManager::DoPoliceRadioCrackle()
m_sQueueSample.m_nVolume = m_anRandomTable[2] % 20 + 15;
m_sQueueSample.m_nLoopCount = 0;
m_sQueueSample.m_nEmittingVolume = m_sQueueSample.m_nVolume;
- m_sQueueSample.m_nLoopStart = SampleManager.GetSampleLoopStartOffset(SFX_POLICE_RADIO_CRACKLE);
- m_sQueueSample.m_nLoopEnd = SampleManager.GetSampleLoopEndOffset(SFX_POLICE_RADIO_CRACKLE);
+ SET_LOOP_OFFSETS(SFX_POLICE_RADIO_CRACKLE)
m_sQueueSample.m_bReleasingSoundFlag = FALSE;
m_sQueueSample.m_bReverbFlag = FALSE;
m_sQueueSample.m_nOffset = 63;
@@ -250,7 +249,7 @@ cAudioManager::ServicePoliceRadioChannel(uint8 wantedLevel)
if (sample == TOTAL_AUDIO_SAMPLES) {
if (!processed) cWait = 30;
} else {
- SampleManager.InitialiseChannel(CHANNEL_POLICE_RADIO, sample, 0);
+ SampleManager.InitialiseChannel(CHANNEL_POLICE_RADIO, sample, SFX_BANK_0);
switch (sample) {
case SFX_POLICE_RADIO_MESSAGE_NOISE_1:
case SFX_POLICE_RADIO_MESSAGE_NOISE_2: