[Scummvm-cvs-logs] scummvm master -> 46cd10c5255a7c99620a335094d5af3ccf5a2092
Strangerke
Strangerke at scummvm.org
Sun Dec 28 11:41:04 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
46cd10c525 ACCESS: Fix DisposeAfterUse flags in sound code (thanks to fuzzie)
Commit: 46cd10c5255a7c99620a335094d5af3ccf5a2092
https://github.com/scummvm/scummvm/commit/46cd10c5255a7c99620a335094d5af3ccf5a2092
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-12-28T11:38:10+01:00
Commit Message:
ACCESS: Fix DisposeAfterUse flags in sound code (thanks to fuzzie)
Changed paths:
engines/access/sound.cpp
diff --git a/engines/access/sound.cpp b/engines/access/sound.cpp
index 221b409..da267bd 100644
--- a/engines/access/sound.cpp
+++ b/engines/access/sound.cpp
@@ -134,7 +134,7 @@ void SoundManager::playSound(Resource *res, int priority) {
return;
}
- Audio::RewindableAudioStream *audioStream = Audio::makeRawStream(resourceData + 32, sampleSize, sampleRate, 0);
+ Audio::RewindableAudioStream *audioStream = Audio::makeRawStream(resourceData + 32, sampleSize, sampleRate, 0, DisposeAfterUse::NO);
_queue.push_back(audioStream);
} else
@@ -143,7 +143,7 @@ void SoundManager::playSound(Resource *res, int priority) {
if (!_mixer->isSoundHandleActive(_effectsHandle))
_mixer->playStream(Audio::Mixer::kSFXSoundType, &_effectsHandle,
_queue[0], -1, _mixer->kMaxChannelVolume, 0,
- DisposeAfterUse::NO);
+ DisposeAfterUse::YES);
}
void SoundManager::checkSoundQueue() {
More information about the Scummvm-git-logs
mailing list