diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 14:46:47 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 14:46:47 +0200 |
commit | 74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd (patch) | |
tree | ebe621b0d748a1a8854760cdfbd227ce7d93d164 /src/audio | |
parent | merge (diff) | |
parent | Merge branch 'master' into miami (diff) | |
download | re3-74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd.tar re3-74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd.tar.gz re3-74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd.tar.bz2 re3-74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd.tar.lz re3-74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd.tar.xz re3-74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd.tar.zst re3-74f00c3c6362f1fe7ee9d25a99ee8db5ce4e88dd.zip |
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioCollision.cpp | 5 | ||||
-rw-r--r-- | src/audio/AudioLogic.cpp | 5 | ||||
-rw-r--r-- | src/audio/AudioManager.h | 5 | ||||
-rw-r--r-- | src/audio/oal/aldlist.h | 2 | ||||
-rw-r--r-- | src/audio/sampman_oal.cpp | 5 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/audio/AudioCollision.cpp b/src/audio/AudioCollision.cpp index ed705b7d..d94d99ea 100644 --- a/src/audio/AudioCollision.cpp +++ b/src/audio/AudioCollision.cpp @@ -178,9 +178,8 @@ static const int32 gOneShotCol[] = {SFX_COL_TARMAC_1, void cAudioManager::SetUpOneShotCollisionSound(const cAudioCollision &col) { - - int16 s1; - int16 s2; + uint16 s1; + uint16 s2; int32 emittingVol; float ratio; diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index 7b8fa0d3..70fd3738 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -47,9 +47,6 @@ #define CHANNEL_PLAYER_VEHICLE_ENGINE m_nActiveSamples #endif -enum PLAY_STATUS { PLAY_STATUS_STOPPED = 0, PLAY_STATUS_PLAYING, PLAY_STATUS_FINISHED }; -enum LOADING_STATUS { LOADING_STATUS_NOT_LOADED = 0, LOADING_STATUS_LOADED, LOADING_STATUS_FAILED }; - void cAudioManager::PreInitialiseGameSpecificSetup() { @@ -4092,7 +4089,7 @@ cAudioManager::SetupJumboRumbleSound(uint8 emittingVol) m_sQueueSample.m_nCounter = 6; m_sQueueSample.m_nSampleIndex = SFX_JUMBO_RUMBLE; m_sQueueSample.m_nFrequency += 200; - m_sQueueSample.m_nOffset = MAX_VOLUME; + m_sQueueSample.m_nOffset = 127; AddSampleToRequestedQueue(); } return TRUE; diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 0eb0805c..1282280a 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -192,6 +192,9 @@ enum { MAX_REFLECTIONS, }; +enum PLAY_STATUS { PLAY_STATUS_STOPPED = 0, PLAY_STATUS_PLAYING, PLAY_STATUS_FINISHED }; +enum LOADING_STATUS { LOADING_STATUS_NOT_LOADED = 0, LOADING_STATUS_LOADED, LOADING_STATUS_FAILED }; + class cAudioManager { public: @@ -214,8 +217,10 @@ public: tAudioEntity m_asAudioEntities[NUM_AUDIOENTITIES]; int32 m_anAudioEntityIndices[NUM_AUDIOENTITIES]; int32 m_nAudioEntitiesTotal; +#ifdef GTA_PC CVector m_avecReflectionsPos[NUM_AUDIO_REFLECTIONS]; float m_afReflectionsDistances[NUM_AUDIO_REFLECTIONS]; +#endif cAudioScriptObjectManager m_sAudioScriptObjectManager; // miami diff --git a/src/audio/oal/aldlist.h b/src/audio/oal/aldlist.h index bebb6791..3ed12d84 100644 --- a/src/audio/oal/aldlist.h +++ b/src/audio/oal/aldlist.h @@ -38,7 +38,7 @@ struct ALDEVICEINFO { { delete[] strDeviceName; strDeviceName = NULL; - } + } void SetName(const char *name) { diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp index 473e7ead..b2c364fb 100644 --- a/src/audio/sampman_oal.cpp +++ b/src/audio/sampman_oal.cpp @@ -178,7 +178,7 @@ add_providers() SampleManager.Set3DProviderName(n, providers[n].name); n++; } - + if ( alGetEnumValue("AL_EFFECT_EAXREVERB") != 0 || pDeviceList->IsExtensionSupported(i, ADEXT_EAX2) || pDeviceList->IsExtensionSupported(i, ADEXT_EAX3) @@ -1014,8 +1014,7 @@ cSampleManager::Initialise(void) aStream[0]->Close(); nStreamLength[i] = tatalms; - } - else + } else USERERROR("Can't open '%s'\n", StreamedNameTable[i]); } #ifdef AUDIO_CACHE |