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/draci | |
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/draci')
-rw-r--r-- | engines/draci/sound.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/draci/sound.cpp b/engines/draci/sound.cpp index 88421abe97..dfe5b7a045 100644 --- a/engines/draci/sound.cpp +++ b/engines/draci/sound.cpp @@ -197,14 +197,13 @@ void Sound::playSoundBuffer(Audio::SoundHandle *handle, const SoundSample &buffe byte flags = Audio::FLAG_UNSIGNED; - if (loop) - flags |= Audio::FLAG_LOOP; - const Audio::Mixer::SoundType soundType = (handleType == kVoiceHandle) ? Audio::Mixer::kSpeechSoundType : Audio::Mixer::kSFXSoundType; // Don't use DisposeAfterUse::YES, because our caching system deletes samples by itself. - Audio::AudioStream *stream = Audio::makeRawMemoryStream(buffer._data, buffer._length, DisposeAfterUse::NO, buffer._frequency, flags, 0, 0); + Audio::AudioStream *stream = Audio::makeLoopingAudioStream( + Audio::makeRawMemoryStream(buffer._data, buffer._length, DisposeAfterUse::NO, buffer._frequency, flags), + loop ? 0 : 1); _mixer->playInputStream(soundType, handle, stream, -1, volume); } |