diff options
author | Nipun Garg | 2019-07-04 23:27:32 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:11 +0200 |
commit | 49cb33911e9cfa9250fb8737cc4adc8c9185f940 (patch) | |
tree | 6f774c614f3ac874b27a5f6acb6ff7d6d11c4c23 /engines | |
parent | 2d04954052bd28ba949f6d5e52eeba6cb373c5c5 (diff) | |
download | scummvm-rg350-49cb33911e9cfa9250fb8737cc4adc8c9185f940.tar.gz scummvm-rg350-49cb33911e9cfa9250fb8737cc4adc8c9185f940.tar.bz2 scummvm-rg350-49cb33911e9cfa9250fb8737cc4adc8c9185f940.zip |
HDB: Add playSoundEX()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/sound.cpp | 5 | ||||
-rw-r--r-- | engines/hdb/sound.h | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp index 1f4ec0aa36..92840e9eb0 100644 --- a/engines/hdb/sound.cpp +++ b/engines/hdb/sound.cpp @@ -34,6 +34,11 @@ bool Sound::playSound(int index) { return true; } +bool Sound::playSoundEx(int index, int channel, bool loop) { + debug(9, "STUB: Play SoundEx"); + return true; +} + bool Sound::playVoice(int index, int actor) { warning("STUB: Play Voice"); return true; diff --git a/engines/hdb/sound.h b/engines/hdb/sound.h index f268309d0b..c790ca910b 100644 --- a/engines/hdb/sound.h +++ b/engines/hdb/sound.h @@ -25,6 +25,14 @@ namespace HDB { +enum { + kMaxSNDChannels = 32, + kSNDFrequency = 22050, + kLaserChannel = kMaxSNDChannels - 1, + kMusicChannel = kMaxSNDChannels - 2, + kVoiceChannel = kMaxSNDChannels - 5 +}; + enum SoundType { SONG_NONE, SND_GUI_INPUT, @@ -1382,6 +1390,7 @@ public: bool init(); bool playSound(int index); + bool playSoundEx(int index, int channel, bool loop); bool playVoice(int index, int actor); void markSoundCacheFreeable(); |