diff options
author | Max Horn | 2010-01-19 23:50:33 +0000 |
---|---|---|
committer | Max Horn | 2010-01-19 23:50:33 +0000 |
commit | cebaa0b0d305aecbdd60424eff1890ebde66312a (patch) | |
tree | 6b24ac15f231dd9f3a9f00ae20af38326bcead8c /engines/sky | |
parent | bce959e0465fd6d5f92b05f338ffde24820bb1ed (diff) | |
download | scummvm-rg350-cebaa0b0d305aecbdd60424eff1890ebde66312a.tar.gz scummvm-rg350-cebaa0b0d305aecbdd60424eff1890ebde66312a.tar.bz2 scummvm-rg350-cebaa0b0d305aecbdd60424eff1890ebde66312a.zip |
Started to get rid of Audio::FLAG_LOOP
svn-id: r47397
Diffstat (limited to 'engines/sky')
-rw-r--r-- | engines/sky/intro.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sky/intro.cpp b/engines/sky/intro.cpp index d5318d66f1..991a763750 100644 --- a/engines/sky/intro.cpp +++ b/engines/sky/intro.cpp @@ -680,7 +680,7 @@ bool Intro::doIntro(bool floppyIntro) { bool Intro::nextPart(uint16 *&data) { uint8 *vData = NULL; - Audio::AudioStream *stream = 0; + Audio::RewindableAudioStream *stream = 0; // return false means cancel intro uint16 command = *data++; @@ -757,8 +757,8 @@ bool Intro::nextPart(uint16 *&data) { case LOOPBG: _mixer->stopID(SOUND_BG); stream = Audio::makeRawMemoryStream(_bgBuf + 256, _bgSize - 768, DisposeAfterUse::YES, - 11025, Audio::FLAG_UNSIGNED | Audio::FLAG_LOOP, 0, 0); - _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_bgSfx, stream, SOUND_BG); + 11025, Audio::FLAG_UNSIGNED); + _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_bgSfx, Audio::makeLoopingAudioStream(stream, 0), SOUND_BG); return true; case PLAYBG: _mixer->stopID(SOUND_BG); |