diff options
author | Max Horn | 2010-03-08 10:27:42 +0000 |
---|---|---|
committer | Max Horn | 2010-03-08 10:27:42 +0000 |
commit | f24cc1c8be08448c8412afef29be3ffa4ff09dd5 (patch) | |
tree | 28c0d14608cae4af3685afb41da2e7651b77a20e /engines/touche | |
parent | 50116130efedc66ec8261df6080fb7ca6fe079f7 (diff) | |
download | scummvm-rg350-f24cc1c8be08448c8412afef29be3ffa4ff09dd5.tar.gz scummvm-rg350-f24cc1c8be08448c8412afef29be3ffa4ff09dd5.tar.bz2 scummvm-rg350-f24cc1c8be08448c8412afef29be3ffa4ff09dd5.zip |
Tweak makeVOCDiskStream
* now takes a SeekableReadStream *pointer* like (almost) all other
audiostream factories
* fix potential memory leak in it
* rename takeOwnershipOfStream to disposeAfterUse for consistency
svn-id: r48184
Diffstat (limited to 'engines/touche')
-rw-r--r-- | engines/touche/resource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/touche/resource.cpp b/engines/touche/resource.cpp index dead9ae4c7..6e0b0220b7 100644 --- a/engines/touche/resource.cpp +++ b/engines/touche/resource.cpp @@ -588,7 +588,7 @@ void ToucheEngine::res_loadSound(int priority, int num) { uint32 size; const uint32 offs = res_getDataOffset(kResourceTypeSound, num, &size); _fData.seek(offs); - Audio::AudioStream *stream = Audio::makeVOCStream(_fData, Audio::FLAG_UNSIGNED); + Audio::AudioStream *stream = Audio::makeVOCStream(&_fData, Audio::FLAG_UNSIGNED); if (stream) { _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_sfxHandle, stream); } @@ -646,7 +646,7 @@ void ToucheEngine::res_loadSpeechSegment(int num) { return; } _fSpeech[i].seek(offs); - stream = Audio::makeVOCStream(_fSpeech[i], Audio::FLAG_UNSIGNED); + stream = Audio::makeVOCStream(&_fSpeech[i], Audio::FLAG_UNSIGNED); } else { if (num >= 750) { num -= 750; |