aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorMax Horn2010-06-15 12:33:54 +0000
committerMax Horn2010-06-15 12:33:54 +0000
commitd570e10b77887fa163f17de512b14fc824f45f33 (patch)
tree44dbf95c8ad21df54d793cf22b2f3590ccb1ef77 /engines/sword1
parent651e2760a3b2de0c542ccbbf1bf3caa319cc0349 (diff)
downloadscummvm-rg350-d570e10b77887fa163f17de512b14fc824f45f33.tar.gz
scummvm-rg350-d570e10b77887fa163f17de512b14fc824f45f33.tar.bz2
scummvm-rg350-d570e10b77887fa163f17de512b14fc824f45f33.zip
Modify makeAIFFStream to match the other sound decoder factories
svn-id: r49844
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/music.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp
index 91c943472c..23cc30e4b1 100644
--- a/engines/sword1/music.cpp
+++ b/engines/sword1/music.cpp
@@ -107,7 +107,7 @@ bool MusicHandle::play(const char *fileBase, bool loop) {
if (!_audioSource) {
sprintf(fileName, "%s.aif", fileBase);
if (_file.open(fileName))
- _audioSource = Audio::makeLoopingAudioStream(Audio::makeAIFFStream(_file), loop ? 0 : 1);
+ _audioSource = Audio::makeLoopingAudioStream(Audio::makeAIFFStream(&_file, DisposeAfterUse::NO), loop ? 0 : 1);
}
if (!_audioSource)