A bit more enums for ChangeMusicMode
This commit is contained in:
parent
8fb71e2555
commit
428b407ad5
@ -1,5 +1,6 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "patcher.h"
|
#include "patcher.h"
|
||||||
|
#include "audio_enums.h"
|
||||||
|
|
||||||
#include "AudioManager.h"
|
#include "AudioManager.h"
|
||||||
|
|
||||||
@ -7128,14 +7129,14 @@ cAudioManager::ProcessSpecial()
|
|||||||
{
|
{
|
||||||
if(m_bUserPause) {
|
if(m_bUserPause) {
|
||||||
if(!m_bPreviousUserPause) {
|
if(!m_bPreviousUserPause) {
|
||||||
MusicManager.ChangeMusicMode(0);
|
MusicManager.ChangeMusicMode(MUSICMODE_FRONTEND);
|
||||||
SampleManager.SetEffectsFadeVolume(maxVolume);
|
SampleManager.SetEffectsFadeVolume(maxVolume);
|
||||||
SampleManager.SetMusicFadeVolume(maxVolume);
|
SampleManager.SetMusicFadeVolume(maxVolume);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(m_bPreviousUserPause) {
|
if(m_bPreviousUserPause) {
|
||||||
MusicManager.StopFrontEndTrack();
|
MusicManager.StopFrontEndTrack();
|
||||||
MusicManager.ChangeMusicMode(1);
|
MusicManager.ChangeMusicMode(MUSICMODE_GAME);
|
||||||
}
|
}
|
||||||
CPlayerPed *playerPed = FindPlayerPed();
|
CPlayerPed *playerPed = FindPlayerPed();
|
||||||
if(playerPed) {
|
if(playerPed) {
|
||||||
|
@ -1085,7 +1085,7 @@ void CMenuManager::LoadAllTextures()
|
|||||||
{
|
{
|
||||||
if (!m_bSpritesLoaded) {
|
if (!m_bSpritesLoaded) {
|
||||||
CMenuManager::CentreMousePointer();
|
CMenuManager::CentreMousePointer();
|
||||||
DMAudio.ChangeMusicMode(0);
|
DMAudio.ChangeMusicMode(MUSICMODE_FRONTEND);
|
||||||
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_STARTING, 0);
|
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_STARTING, 0);
|
||||||
m_nCurrOption = 0;
|
m_nCurrOption = 0;
|
||||||
m_PrefsRadioStation = DMAudio.GetRadioInCar();
|
m_PrefsRadioStation = DMAudio.GetRadioInCar();
|
||||||
@ -2132,7 +2132,7 @@ WRAPPER void CMenuManager::RequestFrontEndShutdown() { EAXJMP(0x488750); }
|
|||||||
void CMenuManager::RequestFrontEndShutdown()
|
void CMenuManager::RequestFrontEndShutdown()
|
||||||
{
|
{
|
||||||
m_bShutDownFrontEndRequested = true;
|
m_bShutDownFrontEndRequested = true;
|
||||||
DMAudio.ChangeMusicMode(1);
|
DMAudio.ChangeMusicMode(MUSICMODE_GAME);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user