From a510482d64d7f77c3a0f9500cfd137d897524a03 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 12 Jul 2019 02:20:21 +0530 Subject: HDB: Add stubs in Sound and Input --- engines/hdb/input.cpp | 2 ++ engines/hdb/sound.cpp | 10 ++++++++++ engines/hdb/sound.h | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp index 212b23967d..256b6fb53d 100644 --- a/engines/hdb/input.cpp +++ b/engines/hdb/input.cpp @@ -348,8 +348,10 @@ void Input::updateKeys(Common::Event event, bool keyDown) { if (keyDown) { buttons |= kButtonA; g_hdb->_gfx->showPointer(true); + warning("STUB: changetoMenu"); } else { buttons &= ~kButtonA; + warning("STUB: changetoMenu"); } } else if (event.kbd.keycode == _keyDebug) { if (keyDown) { diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp index 75e336283b..d7967e2fb9 100644 --- a/engines/hdb/sound.cpp +++ b/engines/hdb/sound.cpp @@ -75,6 +75,16 @@ void Sound::stopMusic() { debug(9, "STUB: Stop Music"); } +bool Sound::freeSound(int index) { + debug(9, "STUB: Free Sound"); + return true; +} + +SoundType Sound::whatSongIsPlaying() { + debug(9, "STUB: whatSongIsPlaying"); + return SONG_NONE; +} + void Sound::markSoundCacheFreeable() { warning("STUB: Sound::markSoundCacheFreeable() "); } diff --git a/engines/hdb/sound.h b/engines/hdb/sound.h index 8e7b0525a8..895f6d9506 100644 --- a/engines/hdb/sound.h +++ b/engines/hdb/sound.h @@ -1391,14 +1391,23 @@ public: void save(Common::OutSaveFile *out); void loadSaveFile(Common::InSaveFile *in); void clearPersistent(); + void setMusicVolume(int value) { + debug(9, "STUB: Add Music System Variables"); + } int getMusicVolume() { debug(9, "STUB: Add Music System Variables"); return 1; } + void setSFXVolume(int value) { + debug(9, "STUB: Add Music System Variables"); + } int getSFXVolume() { debug(9, "STUB: Add Music System Variables"); return 1; } + void setVoiceStatus(int value) { + debug(9, "STUB: Add Music System Variables"); + } int getVoiceStatus() { debug(9, "STUB: Add Music System Variables"); return 1; @@ -1411,6 +1420,9 @@ public: bool songPlaying(SoundType song); bool stopChannel(int channel); void stopMusic(); + bool freeSound(int index); + + SoundType whatSongIsPlaying(); void markSoundCacheFreeable(); }; -- cgit v1.2.3