diff options
author | Nipun Garg | 2019-07-26 09:56:21 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:29 +0200 |
commit | d3eacb7e0fefbd9cde5b17fcfc5727eaf0143ad5 (patch) | |
tree | 9feb40563a83d98f17a9025d15a0e4e433b2a0a4 /engines/hdb/sound.h | |
parent | 85b922895aee317631e07c5ece5ed908ee17952e (diff) | |
download | scummvm-rg350-d3eacb7e0fefbd9cde5b17fcfc5727eaf0143ad5.tar.gz scummvm-rg350-d3eacb7e0fefbd9cde5b17fcfc5727eaf0143ad5.tar.bz2 scummvm-rg350-d3eacb7e0fefbd9cde5b17fcfc5727eaf0143ad5.zip |
HDB: Add playSound(), playSoundEx(), stopChannel()
Diffstat (limited to 'engines/hdb/sound.h')
-rw-r--r-- | engines/hdb/sound.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/hdb/sound.h b/engines/hdb/sound.h index 1ed279df96..7984ab1b22 100644 --- a/engines/hdb/sound.h +++ b/engines/hdb/sound.h @@ -58,8 +58,6 @@ enum { kMaxSNDChannels = 32, kMaxSounds = 5000, kLaserChannel = kMaxSNDChannels - 1, - kMusicChannel = kMaxSNDChannels - 2, - kVoiceChannel = kMaxSNDChannels - 5 }; enum SoundType { @@ -1429,11 +1427,10 @@ struct SoundCache { int32 size; // size of sound const char *name; // filename / MSD name const char *luaName; // name used by Lua for i.d. - int ext; // 0 = Uninitialized, -1 = WAV, 1 = MP3 - //void *data; // actual file data - //FSOUND_SAMPLE *sample; // used to play sound in FMOD + int ext; // 0 = Uninitialized, -1 = WAV, 1 = MP3 + Audio::SeekableAudioStream *audioStream; - SoundCache() : loaded(0), size(0), name(nullptr), luaName(nullptr), ext(0) {} + SoundCache() : loaded(0), size(0), name(nullptr), luaName(nullptr), ext(0), audioStream(nullptr) {} }; struct Song { @@ -1534,6 +1531,7 @@ public: SoundCache _soundCache[kMaxSounds]; int _numSounds; int _sfxVolume; + Audio::SoundHandle _handles[kMaxSNDChannels]; }; |