diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-12 18:59:28 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:34:33 +0200 |
commit | 1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf (patch) | |
tree | d4d2ac80a0f2d8eee7cf1b008f14d269d26b688d /src/audio/AudioManager.h | |
parent | Fix cAudioManager::ProcessCarHeli (diff) | |
download | re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.gz re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.bz2 re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.lz re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.xz re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.zst re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioManager.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index d5b3ce15..5494ca41 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -544,6 +544,23 @@ public: #endif }; +/* + Manual loop points are not on PS2 so let's have these macros to avoid massive ifndefs. + Setting these manually was pointless anyway since they never change from sdt values. + What were they thinking? +*/ +#ifndef GTA_PS2 +#define RESET_LOOP_OFFSETS \ + m_sQueueSample.m_nLoopStart = 0; \ + m_sQueueSample.m_nLoopEnd = -1; +#define SET_LOOP_OFFSETS(sample) \ + m_sQueueSample.m_nLoopStart = SampleManager.GetSampleLoopStartOffset(sample); \ + m_sQueueSample.m_nLoopEnd = SampleManager.GetSampleLoopEndOffset(sample); +#else +#define RESET_LOOP_OFFSETS +#define SET_LOOP_OFFSETS(sample) +#endif + #if defined(AUDIO_MSS) && !defined(PS2_AUDIO_CHANNELS) static_assert(sizeof(cAudioManager) == 0x5558, "cAudioManager: error"); #endif |