diff options
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/music.cpp | 2 | ||||
-rw-r--r-- | engines/sword2/sound.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp index a7d5bf50c2..11dda11470 100644 --- a/engines/sword2/music.cpp +++ b/engines/sword2/music.cpp @@ -302,7 +302,7 @@ Audio::AudioStream *makePSXCLUStream(Common::File *file, int size) { byte *buffer = (byte *)malloc(size); file->read(buffer, size); - return new Audio::VagStream(new Common::MemoryReadStream(buffer, size, DisposeAfterUse::YES)); + return Audio::makeVagStream(new Common::MemoryReadStream(buffer, size, DisposeAfterUse::YES)); } // ---------------------------------------------------------------------------- diff --git a/engines/sword2/sound.cpp b/engines/sword2/sound.cpp index 5de38fde9c..4273da67b8 100644 --- a/engines/sword2/sound.cpp +++ b/engines/sword2/sound.cpp @@ -334,7 +334,7 @@ int32 Sound::playFx(Audio::SoundHandle *handle, byte *data, uint32 len, uint8 vo Audio::RewindableAudioStream *input = 0; if (Sword2Engine::isPsx()) - input = new Audio::VagStream(stream); + input = Audio::makeVagStream(stream); else input = Audio::makeWAVStream(stream, DisposeAfterUse::YES); |