diff options
Diffstat (limited to 'sound/voc.cpp')
-rw-r--r-- | sound/voc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/voc.cpp b/sound/voc.cpp index 7a9a5e8b1b..27f78f9eeb 100644 --- a/sound/voc.cpp +++ b/sound/voc.cpp @@ -353,7 +353,7 @@ AudioStream *makeVOCStream(Common::SeekableReadStream &stream, byte flags, uint if (!data) return 0; - return makeRawMemoryStream(data, size, rate, flags | Audio::Mixer::FLAG_AUTOFREE, loopStart, loopEnd); + return makeRawMemoryStream(data, size, DisposeAfterUse::YES, rate, flags, loopStart, loopEnd); #endif } @@ -368,7 +368,7 @@ SeekableAudioStream *makeVOCStream(Common::SeekableReadStream &stream, byte flag if (!data) return 0; - return makeRawMemoryStream(data, size, rate, flags | Audio::Mixer::FLAG_AUTOFREE); + return makeRawMemoryStream(data, size, DisposeAfterUse::YES, rate, flags); #endif } |