mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
HYPNO: added sound action implementation, needed to fix some missing sounds in spider
This commit is contained in:
parent
09e2b6b567
commit
d85a1c53b0
@ -174,6 +174,10 @@ void HypnoEngine::runPlay(Play *a) {
|
||||
}
|
||||
}
|
||||
|
||||
void HypnoEngine::runSound(Sound *a) {
|
||||
playSound(a->path, 1);
|
||||
}
|
||||
|
||||
void HypnoEngine::runAmbient(Ambient *a) {
|
||||
if (a->flag == "/BITMAP") {
|
||||
Graphics::Surface *frame = decodeFrame(a->path, a->frameNumber);
|
||||
|
@ -80,6 +80,7 @@ enum ActionType {
|
||||
GlobalAction,
|
||||
TalkAction,
|
||||
SwapPointerAction,
|
||||
SoundAction,
|
||||
ChangeLevelAction
|
||||
};
|
||||
|
||||
@ -235,6 +236,15 @@ public:
|
||||
Filename path;
|
||||
};
|
||||
|
||||
class Sound : public Action {
|
||||
public:
|
||||
Sound(Filename path_) {
|
||||
type = SoundAction;
|
||||
path = path_;
|
||||
}
|
||||
Filename path;
|
||||
};
|
||||
|
||||
class Intro : public Action {
|
||||
public:
|
||||
Intro(Filename path_) {
|
||||
|
@ -189,6 +189,7 @@ public:
|
||||
void runCutscene(Cutscene *a);
|
||||
void runIntro(Intro *a);
|
||||
void runPlay(Play *a);
|
||||
void runSound(Sound *a);
|
||||
void runPalette(Palette *a);
|
||||
void runAmbient(Ambient *a);
|
||||
void runWalN(WalN *a);
|
||||
|
@ -172,6 +172,10 @@ void HypnoEngine::clickedHotspot(Common::Point mousePos) {
|
||||
runPlay((Play *)action);
|
||||
break;
|
||||
|
||||
case SoundAction:
|
||||
runSound((Sound *)action);
|
||||
break;
|
||||
|
||||
case WalNAction:
|
||||
runWalN((WalN *)action);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user