diff options
author | Robert Göffringmann | 2004-12-05 02:55:06 +0000 |
---|---|---|
committer | Robert Göffringmann | 2004-12-05 02:55:06 +0000 |
commit | 5d32a2c034a1e9036c9dcc721b6bfe27c46eb904 (patch) | |
tree | eab152166ad59cdb6e5760599f1a6784ee522685 /graphics/animation.cpp | |
parent | 095549125b303db33702f30aeacb924e0b703ea0 (diff) | |
download | scummvm-rg350-5d32a2c034a1e9036c9dcc721b6bfe27c46eb904.tar.gz scummvm-rg350-5d32a2c034a1e9036c9dcc721b6bfe27c46eb904.tar.bz2 scummvm-rg350-5d32a2c034a1e9036c9dcc721b6bfe27c46eb904.zip |
added support for an international BS1 cutscene pack (which we didn't release yet)
svn-id: r15983
Diffstat (limited to 'graphics/animation.cpp')
-rw-r--r-- | graphics/animation.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/graphics/animation.cpp b/graphics/animation.cpp index ff0968e18a..1e472e0608 100644 --- a/graphics/animation.cpp +++ b/graphics/animation.cpp @@ -46,7 +46,7 @@ BaseAnimationState::~BaseAnimationState() { } -bool BaseAnimationState::init(const char *name) { +bool BaseAnimationState::init(const char *name, void *audioArg) { #ifdef USE_MPEG2 char tempFile[512]; @@ -130,7 +130,7 @@ bool BaseAnimationState::init(const char *name) { ticks = _sys->getMillis(); // Play audio - bgSoundStream = AudioStream::openStreamFile(name); + bgSoundStream = createAudioStream(name, audioArg); if (bgSoundStream != NULL) { _snd->playInputStream(&bgSound, bgSoundStream, false, -1, 255, 0, false); @@ -144,6 +144,10 @@ bool BaseAnimationState::init(const char *name) { #endif } +AudioStream *BaseAnimationState::createAudioStream(const char *name, void *arg) { + return AudioStream::openStreamFile(name); +} + bool BaseAnimationState::decodeFrame() { #ifdef USE_MPEG2 mpeg2_state_t state; |