This commit is contained in:
Paul 2001-07-03 20:28:04 +00:00
parent 283121436f
commit 68a827397c
7 changed files with 39 additions and 5 deletions

View File

@ -487,7 +487,7 @@ void CFrontEndOptions::select()
m_closingDown=false;
CSoundMediator::setSong(CSoundMediator::SONG_OPTIONS);
CSoundMediator::playSong();
m_musicStarted=false;
CFader::setFadingIn();
}
@ -578,6 +578,12 @@ void CFrontEndOptions::think(int _frames)
if(!CFader::isFading())
{
if(!m_musicStarted)
{
CSoundMediator::playSong();
m_musicStarted=true;
}
if(m_nextMode!=m_mode)
{
if(m_nextMode==MODE__LOAD)

View File

@ -154,6 +154,8 @@ private:
int m_screenXOff;
int m_screenYOff;
int m_musicStarted;
static int s_controlStyleValues[];
static CGUITextReadout::TextReadoutData s_controlStyleReadoutText[];

View File

@ -198,7 +198,7 @@ void CFrontEndStart::select()
m_slotDrawOffset=0;
CSoundMediator::setSong(CSoundMediator::SONG_MEMCARD2);
CSoundMediator::playSong();
m_musicStarted=false;
}
/*----------------------------------------------------------------------
@ -409,6 +409,12 @@ void CFrontEndStart::think(int _frames)
{
if(!CFader::isFading())
{
if(!m_musicStarted)
{
CSoundMediator::playSong();
m_musicStarted=true;
}
if(m_slotDrawOffset==0)
{
if(m_state==STATE_SELECT)

View File

@ -114,6 +114,8 @@ private:
static const int s_itemFrames[];
int m_musicStarted;
};

View File

@ -434,6 +434,14 @@ void CGameScene::render_boss_intro()
/*****************************************************************************/
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)
{
case GAMESTATE_SHOWING_LIVES:
@ -757,10 +765,10 @@ void CGameScene::initLevel()
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();
m_musicStarted=false;
SYSTEM_DBGMSG("InitLevelDone\n");
}

View File

@ -136,6 +136,8 @@ static DVECTOR s_CamShake;
int m_levelHasTimer;
int m_timer;
int m_musicStarted;
};

View File

@ -54,6 +54,13 @@
Vars
---- */
#ifdef __USER_paul__
static int sounddebug=true;
#else
static int sounddebug=false;
#endif
/*----------------------------------------------------------------------
Function:
Purpose:
@ -215,6 +222,7 @@ void CXMPlaySound::think()
//////////////
if(sounddebug)
{
static const int colours[6][3]=
{