This commit is contained in:
parent
283121436f
commit
68a827397c
7 changed files with 39 additions and 5 deletions
|
@ -487,7 +487,7 @@ void CFrontEndOptions::select()
|
||||||
m_closingDown=false;
|
m_closingDown=false;
|
||||||
|
|
||||||
CSoundMediator::setSong(CSoundMediator::SONG_OPTIONS);
|
CSoundMediator::setSong(CSoundMediator::SONG_OPTIONS);
|
||||||
CSoundMediator::playSong();
|
m_musicStarted=false;
|
||||||
|
|
||||||
CFader::setFadingIn();
|
CFader::setFadingIn();
|
||||||
}
|
}
|
||||||
|
@ -578,6 +578,12 @@ void CFrontEndOptions::think(int _frames)
|
||||||
|
|
||||||
if(!CFader::isFading())
|
if(!CFader::isFading())
|
||||||
{
|
{
|
||||||
|
if(!m_musicStarted)
|
||||||
|
{
|
||||||
|
CSoundMediator::playSong();
|
||||||
|
m_musicStarted=true;
|
||||||
|
}
|
||||||
|
|
||||||
if(m_nextMode!=m_mode)
|
if(m_nextMode!=m_mode)
|
||||||
{
|
{
|
||||||
if(m_nextMode==MODE__LOAD)
|
if(m_nextMode==MODE__LOAD)
|
||||||
|
|
|
@ -154,6 +154,8 @@ private:
|
||||||
int m_screenXOff;
|
int m_screenXOff;
|
||||||
int m_screenYOff;
|
int m_screenYOff;
|
||||||
|
|
||||||
|
int m_musicStarted;
|
||||||
|
|
||||||
static int s_controlStyleValues[];
|
static int s_controlStyleValues[];
|
||||||
static CGUITextReadout::TextReadoutData s_controlStyleReadoutText[];
|
static CGUITextReadout::TextReadoutData s_controlStyleReadoutText[];
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,7 @@ void CFrontEndStart::select()
|
||||||
m_slotDrawOffset=0;
|
m_slotDrawOffset=0;
|
||||||
|
|
||||||
CSoundMediator::setSong(CSoundMediator::SONG_MEMCARD2);
|
CSoundMediator::setSong(CSoundMediator::SONG_MEMCARD2);
|
||||||
CSoundMediator::playSong();
|
m_musicStarted=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
@ -409,6 +409,12 @@ void CFrontEndStart::think(int _frames)
|
||||||
{
|
{
|
||||||
if(!CFader::isFading())
|
if(!CFader::isFading())
|
||||||
{
|
{
|
||||||
|
if(!m_musicStarted)
|
||||||
|
{
|
||||||
|
CSoundMediator::playSong();
|
||||||
|
m_musicStarted=true;
|
||||||
|
}
|
||||||
|
|
||||||
if(m_slotDrawOffset==0)
|
if(m_slotDrawOffset==0)
|
||||||
{
|
{
|
||||||
if(m_state==STATE_SELECT)
|
if(m_state==STATE_SELECT)
|
||||||
|
|
|
@ -114,6 +114,8 @@ private:
|
||||||
|
|
||||||
static const int s_itemFrames[];
|
static const int s_itemFrames[];
|
||||||
|
|
||||||
|
int m_musicStarted;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -434,6 +434,14 @@ void CGameScene::render_boss_intro()
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void CGameScene::think(int _frames)
|
void CGameScene::think(int _frames)
|
||||||
{
|
{
|
||||||
|
if(!m_musicStarted&&!CFader::isFading())
|
||||||
|
{
|
||||||
|
// Song is loaded/dumped by the level, and played from here. This just gives some
|
||||||
|
// better timing over when it starts (pkg)
|
||||||
|
CSoundMediator::playSong();
|
||||||
|
m_musicStarted=true;
|
||||||
|
}
|
||||||
|
|
||||||
switch(m_gamestate)
|
switch(m_gamestate)
|
||||||
{
|
{
|
||||||
case GAMESTATE_SHOWING_LIVES:
|
case GAMESTATE_SHOWING_LIVES:
|
||||||
|
@ -757,10 +765,10 @@ void CGameScene::initLevel()
|
||||||
m_levelHasTimer=false;
|
m_levelHasTimer=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Song is loaded/dumped by the level, and played from here. This just gives some
|
|
||||||
// better timing over when it starts (pkg)
|
|
||||||
CSoundMediator::playSong();
|
|
||||||
CActorPool::SetUpCache();
|
CActorPool::SetUpCache();
|
||||||
|
|
||||||
|
m_musicStarted=false;
|
||||||
|
|
||||||
SYSTEM_DBGMSG("InitLevelDone\n");
|
SYSTEM_DBGMSG("InitLevelDone\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,8 @@ static DVECTOR s_CamShake;
|
||||||
int m_levelHasTimer;
|
int m_levelHasTimer;
|
||||||
int m_timer;
|
int m_timer;
|
||||||
|
|
||||||
|
int m_musicStarted;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,13 @@
|
||||||
Vars
|
Vars
|
||||||
---- */
|
---- */
|
||||||
|
|
||||||
|
#ifdef __USER_paul__
|
||||||
|
static int sounddebug=true;
|
||||||
|
#else
|
||||||
|
static int sounddebug=false;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
Purpose:
|
Purpose:
|
||||||
|
@ -215,6 +222,7 @@ void CXMPlaySound::think()
|
||||||
|
|
||||||
|
|
||||||
//////////////
|
//////////////
|
||||||
|
if(sounddebug)
|
||||||
{
|
{
|
||||||
static const int colours[6][3]=
|
static const int colours[6][3]=
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue