From ce9fa5692acca166e100b69b99a679cea38c18b9 Mon Sep 17 00:00:00 2001 From: Georgy Treshchev Date: Wed, 24 Feb 2021 08:29:18 +0100 Subject: [PATCH] Solving a minor wave padding issue --- .../Private/RuntimeAudioImporterLibrary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RuntimeAudioImporter/Source/RuntimeAudioImporter/Private/RuntimeAudioImporterLibrary.cpp b/RuntimeAudioImporter/Source/RuntimeAudioImporter/Private/RuntimeAudioImporterLibrary.cpp index f9de4a2..f80330f 100644 --- a/RuntimeAudioImporter/Source/RuntimeAudioImporter/Private/RuntimeAudioImporterLibrary.cpp +++ b/RuntimeAudioImporter/Source/RuntimeAudioImporter/Private/RuntimeAudioImporterLibrary.cpp @@ -227,7 +227,7 @@ class USoundWave* URuntimeAudioImporterLibrary::GetSoundWaveObject(const uint8* // RawPCMDataSize = WaveDataSize - 44 bytes (the header of the WAV data) = SampleDataSize sw->RawPCMDataSize = WaveInfo.SampleDataSize; sw->RawPCMData = (uint8*)FMemory::Malloc(sw->RawPCMDataSize); - FMemory::Memmove(sw->RawPCMData, WaveData, WaveDataSize); + FMemory::Memmove(sw->RawPCMData, WaveData, sw->RawPCMDataSize); // Callback Dispatcher OnProgress (not completely accurate implementation) OnProgress_Internal(90);