Skip to content
Permalink
Browse files

ACCESS: Fix DisposeAfterUse flags in sound code (thanks to fuzzie)

  • Loading branch information
Strangerke committed Dec 28, 2014
1 parent d0ac190 commit 46cd10c5255a7c99620a335094d5af3ccf5a2092
Showing with 2 additions and 2 deletions.
  1. +2 −2 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() {

0 comments on commit 46cd10c

Please sign in to comment.
You can’t perform that action at this time.