mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
PETKA: implement sound balance for objects
This commit is contained in:
parent
77ad33ad8e
commit
9e5729d6fb
@ -520,6 +520,11 @@ void QObject::update(int time) {
|
||||
_time += time;
|
||||
FlicDecoder *flc = g_vm->resMgr()->loadFlic(_resourceId);
|
||||
if (flc && flc->getFrameCount() != 1) {
|
||||
if (_sound) {
|
||||
Common::Rect bounds = flc->getBounds();
|
||||
_sound->setBalance(bounds.left + bounds.width() / 2 - g_vm->getQSystem()->_xOffset, 640);
|
||||
}
|
||||
|
||||
while (_time >= (int32)flc->getDelay()) {
|
||||
if (_sound && flc->getCurFrame() == 0) {
|
||||
_startSound = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user