This commit is contained in:
Paul 2001-01-03 20:43:49 +00:00
parent b8d4479a44
commit 8ee1f94da5
5 changed files with 76 additions and 35 deletions

View file

@ -54,6 +54,10 @@
#include "locale\textdbase.h"
#endif
#ifndef __SOUND_SOUND_H__
#include "sound\sound.h"
#endif
/* Std Lib
------- */
@ -135,6 +139,9 @@ void CFrontEndScene::init()
m_font=new ("frontendfont") FontBank();
m_font->initialise(&standardFont);
m_font->setJustification(FontBank::JUST_CENTRE);
CSoundMediator::setSong(CSoundMediator::SONG_TITLE);
CSoundMediator::playSong();
}
@ -153,6 +160,8 @@ void CFrontEndScene::shutdown()
{
s_modeCodes[i]->shutdown();
}
CSoundMediator::dumpSong();
}

View file

@ -286,9 +286,9 @@ void CFrontEndOptions::init()
&m_nextMode,MODE__OPTIONS);
}
m_bgmVolume=CSoundMediator::getVolume(CSoundMediator::SONG);
m_sfxVolume=CSoundMediator::getVolume(CSoundMediator::SFX);
m_speechVolume=CSoundMediator::getVolume(CSoundMediator::SPEECH);
m_bgmVolume=CSoundMediator::getVolume(CSoundMediator::VOL_SONG);
m_sfxVolume=CSoundMediator::getVolume(CSoundMediator::VOL_SFX);
m_speechVolume=CSoundMediator::getVolume(CSoundMediator::VOL_SPEECH);
m_controlStyle=CPadConfig::getConfig();
m_screenXOff=VidGetXOfs();
m_screenYOff=VidGetYOfs();
@ -393,19 +393,19 @@ void CFrontEndOptions::think(int _frames)
if(m_mode==MODE__SOUND)
{
if(m_bgmVolume!=CSoundMediator::getVolume(CSoundMediator::SONG))
if(m_bgmVolume!=CSoundMediator::getVolume(CSoundMediator::VOL_SONG))
{
CSoundMediator::setVolume(CSoundMediator::SONG,m_bgmVolume);
CSoundMediator::setVolume(CSoundMediator::VOL_SONG,m_bgmVolume);
PAUL_DBGMSG("SONG");
}
if(m_sfxVolume!=CSoundMediator::getVolume(CSoundMediator::SFX))
if(m_sfxVolume!=CSoundMediator::getVolume(CSoundMediator::VOL_SFX))
{
CSoundMediator::setVolume(CSoundMediator::SFX,m_sfxVolume);
CSoundMediator::setVolume(CSoundMediator::VOL_SFX,m_sfxVolume);
PAUL_DBGMSG("SFX");
}
if(m_speechVolume!=CSoundMediator::getVolume(CSoundMediator::SPEECH))
if(m_speechVolume!=CSoundMediator::getVolume(CSoundMediator::VOL_SPEECH))
{
CSoundMediator::setVolume(CSoundMediator::SPEECH,m_speechVolume);
CSoundMediator::setVolume(CSoundMediator::VOL_SPEECH,m_speechVolume);
PAUL_DBGMSG("SPEECH");
}
}