mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 12:20:00 +00:00
Fix speed of sound
This commit is contained in:
parent
c4479a0185
commit
2e06e4b6b8
|
@ -17,12 +17,15 @@ const int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples);
|
||||||
const int policeChannel = channels + 1;
|
const int policeChannel = channels + 1;
|
||||||
const int allChannels = channels + 2;
|
const int allChannels = channels + 2;
|
||||||
|
|
||||||
|
#define SPEED_OF_SOUND 343.f
|
||||||
|
#define TIME_SPENT 40
|
||||||
|
|
||||||
cAudioManager::cAudioManager()
|
cAudioManager::cAudioManager()
|
||||||
{
|
{
|
||||||
m_bIsInitialised = false;
|
m_bIsInitialised = false;
|
||||||
m_bReverb = true;
|
m_bReverb = true;
|
||||||
m_fSpeedOfSound = 6.86f;
|
m_fSpeedOfSound = SPEED_OF_SOUND / TIME_SPENT;
|
||||||
m_nTimeSpent = 50;
|
m_nTimeSpent = TIME_SPENT;
|
||||||
m_nActiveSamples = NUM_SOUNDS_SAMPLES_SLOTS;
|
m_nActiveSamples = NUM_SOUNDS_SAMPLES_SLOTS;
|
||||||
m_nActiveSampleQueue = 1;
|
m_nActiveSampleQueue = 1;
|
||||||
ClearRequestedQueue();
|
ClearRequestedQueue();
|
||||||
|
|
|
@ -435,7 +435,7 @@ cMusicManager::ServiceFrontEndMode()
|
||||||
else {
|
else {
|
||||||
if (m_nCurrentVolume < m_nMaxVolume)
|
if (m_nCurrentVolume < m_nMaxVolume)
|
||||||
m_nCurrentVolume = Min(m_nMaxVolume, m_nCurrentVolume + 6);
|
m_nCurrentVolume = Min(m_nMaxVolume, m_nCurrentVolume + 6);
|
||||||
SampleManager.SetStreamedVolumeAndPan(m_nCurrentVolume, 63u, 0, 0);
|
SampleManager.SetStreamedVolumeAndPan(m_nCurrentVolume, 63, 0, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (m_nPlayingTrack == STREAMED_SOUND_RADIO_MP3_PLAYER)
|
if (m_nPlayingTrack == STREAMED_SOUND_RADIO_MP3_PLAYER)
|
||||||
|
|
Loading…
Reference in a new issue