diff options
author | Nipun Garg | 2019-07-12 02:20:21 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:17 +0200 |
commit | a510482d64d7f77c3a0f9500cfd137d897524a03 (patch) | |
tree | 4c1ef5557d69e9d59b00e72c4098ec0c1f09ad76 | |
parent | d5a779168f2110f4041f78d0f4d3dc5145d9b5ce (diff) | |
download | scummvm-rg350-a510482d64d7f77c3a0f9500cfd137d897524a03.tar.gz scummvm-rg350-a510482d64d7f77c3a0f9500cfd137d897524a03.tar.bz2 scummvm-rg350-a510482d64d7f77c3a0f9500cfd137d897524a03.zip |
HDB: Add stubs in Sound and Input
-rw-r--r-- | engines/hdb/input.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/sound.cpp | 10 | ||||
-rw-r--r-- | engines/hdb/sound.h | 12 |
3 files changed, 24 insertions, 0 deletions
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(); }; |