From bcc0adb8fa213210147c3b36e5283fe8f752d55c Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Tue, 29 Mar 2011 16:28:24 +0200 Subject: MOHAWK: Handle LB item sound priorities. --- engines/mohawk/livingbooks.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/mohawk/livingbooks.h') diff --git a/engines/mohawk/livingbooks.h b/engines/mohawk/livingbooks.h index 3cd9142793..74bf520451 100644 --- a/engines/mohawk/livingbooks.h +++ b/engines/mohawk/livingbooks.h @@ -365,6 +365,7 @@ public: virtual void notify(uint16 data, uint16 from); // 0x1A uint16 getId() { return _itemId; } + uint16 getSoundPriority() { return _soundMode; } protected: MohawkEngine_LivingBooks *_vm; @@ -598,6 +599,9 @@ public: void notifyAll(uint16 data, uint16 from); void queueDelayedEvent(DelayedEvent event); + bool playSound(LBItem *source, uint16 resourceId); + void lockSound(LBItem *owner, bool lock); + bool isBigEndian() const { return getGameType() != GType_LIVINGBOOKSV1 || getPlatform() == Common::kPlatformMacintosh; } bool isPreMohawk() const; @@ -632,6 +636,11 @@ private: bool loadPage(LBMode mode, uint page, uint subpage); void updatePage(); + uint16 _lastSoundOwner, _lastSoundId; + uint16 _lastSoundPriority; + uint16 _soundLockOwner; + uint16 _maxSoundPriority; + uint16 getResourceVersion(); void loadBITL(uint16 resourceId); void loadSHP(uint16 resourceId); -- cgit v1.2.3