aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/television.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-06 12:14:02 -0400
committerPaul Gilbert2016-08-06 12:14:02 -0400
commitf0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4 (patch)
tree078f3b879d844b955b030d27b03918620c907421 /engines/titanic/game/television.cpp
parent139ad46410fe0a92a83eabd662caf2165eb498da (diff)
downloadscummvm-rg350-f0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4.tar.gz
scummvm-rg350-f0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4.tar.bz2
scummvm-rg350-f0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4.zip
TITANIC: Added more sound manager methods
Diffstat (limited to 'engines/titanic/game/television.cpp')
-rw-r--r--engines/titanic/game/television.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/game/television.cpp b/engines/titanic/game/television.cpp
index f5a7e5f63a..af6bdb8c03 100644
--- a/engines/titanic/game/television.cpp
+++ b/engines/titanic/game/television.cpp
@@ -103,7 +103,7 @@ void CTelevision::load(SimpleFile *file) {
bool CTelevision::LeaveViewMsg(CLeaveViewMsg *msg) {
petClear();
if (_isOn) {
- if (soundFn1(_soundHandle))
+ if (isSoundActive(_soundHandle))
stopSound(_soundHandle, 0);
loadFrame(622);
@@ -153,7 +153,7 @@ static const int END_FRAMES[8] = { 0, 55, 111, 167, 223, 279, 335, 391 };
bool CTelevision::PETUpMsg(CPETUpMsg *msg) {
if (msg->_name == "Television" && _isOn) {
- if (soundFn1(_soundHandle))
+ if (isSoundActive(_soundHandle))
stopSound(_soundHandle, 0);
_fieldE0 = _fieldE0 % _fieldE4 + 1;
@@ -166,7 +166,7 @@ bool CTelevision::PETUpMsg(CPETUpMsg *msg) {
bool CTelevision::PETDownMsg(CPETDownMsg *msg) {
if (msg->_name == "Television" && _isOn) {
- if (soundFn1(_soundHandle))
+ if (isSoundActive(_soundHandle))
stopSound(_soundHandle, 0);
if (--_fieldE0 < 1)
_fieldE0 += _fieldE4;
@@ -215,7 +215,7 @@ bool CTelevision::PETActivateMsg(CPETActivateMsg *msg) {
_fieldE0 = 1;
} else {
stopMovie();
- if (soundFn1(_soundHandle))
+ if (isSoundActive(_soundHandle))
stopSound(_soundHandle, 0);
setVisible(false);