mirror of
https://github.com/halpz/re3.git
synced 2024-12-22 17:35:29 +00:00
PS2 mission audio length
This commit is contained in:
parent
9b511d28ec
commit
8c1f1cc7b8
|
@ -8756,8 +8756,13 @@ cAudioManager::PreloadMissionAudio(Const char *name)
|
||||||
m_nMissionAudioLoadingStatus = LOADING_STATUS_NOT_LOADED;
|
m_nMissionAudioLoadingStatus = LOADING_STATUS_NOT_LOADED;
|
||||||
m_nMissionAudioPlayStatus = PLAY_STATUS_STOPPED;
|
m_nMissionAudioPlayStatus = PLAY_STATUS_STOPPED;
|
||||||
m_bIsMissionAudioPlaying = FALSE;
|
m_bIsMissionAudioPlaying = FALSE;
|
||||||
|
#ifdef GTA_PS2
|
||||||
|
m_nMissionAudioFramesToPlay = m_nTimeSpent * SampleManager.GetSampleLength(missionAudioSfx) / SampleManager.GetSampleBaseFrequency(missionAudioSfx);
|
||||||
|
m_nMissionAudioFramesToPlay = 11 * m_nMissionAudioFramesToPlay / 10;
|
||||||
|
#else
|
||||||
m_nMissionAudioFramesToPlay = m_nTimeSpent * SampleManager.GetStreamedFileLength(missionAudioSfx) / 1000;
|
m_nMissionAudioFramesToPlay = m_nTimeSpent * SampleManager.GetStreamedFileLength(missionAudioSfx) / 1000;
|
||||||
m_nMissionAudioFramesToPlay *= 4;
|
m_nMissionAudioFramesToPlay *= 4;
|
||||||
|
#endif
|
||||||
m_bIsMissionAudioAllowedToPlay = FALSE;
|
m_bIsMissionAudioAllowedToPlay = FALSE;
|
||||||
m_bIsMissionAudio2D = TRUE;
|
m_bIsMissionAudio2D = TRUE;
|
||||||
g_bMissionAudioLoadFailed = FALSE;
|
g_bMissionAudioLoadFailed = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue