- Exhumed: Play sound on Lobotomy logo

Fixes #224.
This commit is contained in:
Christoph Oelckers 2020-08-21 19:40:18 +02:00
parent 0f3555fc7c
commit a4d0e47389
3 changed files with 20 additions and 7 deletions

View file

@ -424,6 +424,25 @@ void menu_DoPlasma()
//
//---------------------------------------------------------------------------
class DLobotomyScreen : public DImageScreen
{
public:
DLobotomyScreen(FGameTexture *tex, int fade) : DImageScreen(tex, fade)
{}
int Frame(uint64_t clock, bool skiprequest) override
{
if (clock == 0) PlayLocalSound(StaticSound[kSoundJonLaugh2], 7000, false, CHANF_UI);
return DImageScreen::Frame(clock, skiprequest);
}
};
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
static const short skullDurations[] = { 6, 25, 43, 50, 68, 78, 101, 111, 134, 158, 173, 230, 600 };
class DMainTitle : public DScreenJob
@ -534,7 +553,7 @@ void DoTitle(CompletionFunc completion)
int job = 0;
jobs[job++] = { Create<DImageScreen>(tileGetTexture(EXHUMED ? kTileBMGLogo : kTilePIELogo), DScreenJob::fadein | DScreenJob::fadeout) };
jobs[job++] = { Create<DImageScreen>(tileGetTexture(seq_GetSeqPicnum(kSeqScreens, 0, 0)), DScreenJob::fadein | DScreenJob::fadeout) };
jobs[job++] = { Create<DLobotomyScreen>(tileGetTexture(seq_GetSeqPicnum(kSeqScreens, 0, 0)), DScreenJob::fadein | DScreenJob::fadeout) };
jobs[job++] = { PlayMovie("book.mov") };
jobs[job++] = { Create<DMainTitle>() };

View file

@ -727,11 +727,6 @@ void PlayTitleSound(void)
PlayLocalSound(StaticSound[kSoundItemSpecial], 0, false, CHANF_UI);
}
void PlayLogoSound(void)
{
PlayLocalSound(StaticSound[kSoundJonLaugh2], 7000, false, CHANF_UI);
}
void PlayGameOverSound(void)
{
PlayLocalSound(StaticSound[kSoundJonLaugh2], 0, false, CHANF_UI);

View file

@ -144,7 +144,6 @@ void StopSpriteSound(short nSprite);
void StartSwirlies();
void UpdateSwirlies();
void PlayLogoSound(void);
void PlayTitleSound(void);
void PlayGameOverSound(void);