From 21e1cc4cf8b79a9f59e911514c52831113356f7c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 31 Jan 2010 02:11:41 +0000 Subject: Switch makeADPCMStream to DisposeAfterUse::Flag svn-id: r47736 --- engines/saga/sndres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/saga') diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp index be65312963..4532e2d23a 100644 --- a/engines/saga/sndres.cpp +++ b/engines/saga/sndres.cpp @@ -306,7 +306,7 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff case kSoundVOX: buffer.size = soundResourceLength * 4; if (!onlyHeader) { - voxStream = Audio::makeADPCMStream(&readS, false, soundResourceLength, Audio::kADPCMOki); + voxStream = Audio::makeADPCMStream(&readS, DisposeAfterUse::NO, soundResourceLength, Audio::kADPCMOki); buffer.buffer = (byte *)malloc(buffer.size); voxStream->readBuffer((int16*)buffer.buffer, soundResourceLength * 2); delete voxStream; -- cgit v1.2.3