aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2008-12-14 23:41:48 +0000
committerTravis Howell2008-12-14 23:41:48 +0000
commit9c20a533bb121d97088e19ce620b1172b16fa8a1 (patch)
treef8a5832a9cf36e1f55690712da16284f50c8028a /engines/agos
parent41499091b051ae1327b5d35e9593525fd6e749dd (diff)
downloadscummvm-rg350-9c20a533bb121d97088e19ce620b1172b16fa8a1.tar.gz
scummvm-rg350-9c20a533bb121d97088e19ce620b1172b16fa8a1.tar.bz2
scummvm-rg350-9c20a533bb121d97088e19ce620b1172b16fa8a1.zip
Enable Smacker support, and switch later HE games to Smacker support (since they aren't supported yet).
svn-id: r35368
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/animation.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp
index c39e476d5e..328aa75acc 100644
--- a/engines/agos/animation.cpp
+++ b/engines/agos/animation.cpp
@@ -106,14 +106,14 @@ bool MoviePlayer::load(const char *filename) {
void MoviePlayer::playOmniTV() {
// Load OmniTV video
- if (_fd) {
+ if (_fileStream) {
_vm->setBitFlag(42, false);
_omniTV = true;
startSound();
} else {
if (_omniTVFile) {
// Restore state
- _fd = _omniTVFile;
+ _fileStream = _omniTVFile;
_mixer->pauseHandle(_omniTVSound, false);
_vm->setBitFlag(42, false);
@@ -175,14 +175,14 @@ void MoviePlayer::startSound() {
byte *buffer;
uint32 offset, size, tag;
- tag = _fd->readUint32BE();
+ tag = _fileStream->readUint32BE();
if (tag == MKID_BE('WAVE')) {
- size = _fd->readUint32BE();
+ size = _fileStream->readUint32BE();
if (_sequenceNum) {
Common::File in;
- _fd->seek(size, SEEK_CUR);
+ _fileStream->seek(size, SEEK_CUR);
in.open((const char *)"audio.wav");
if (!in.isOpen()) {
@@ -199,7 +199,7 @@ void MoviePlayer::startSound() {
in.close();
} else {
buffer = (byte *)malloc(size);
- _fd->read(buffer, size);
+ _fileStream->read(buffer, size);
}
Common::MemoryReadStream stream(buffer, size);
@@ -226,10 +226,10 @@ void MoviePlayer::nextFrame() {
if (_vm->getBitFlag(42)) {
// Save state
- _omniTVFile = _fd;
+ _omniTVFile = _fileStream;
_mixer->pauseHandle(_omniTVSound, true);
- _fd = 0;
+ _fileStream = 0;
_omniTV = false;
return;
}