mirror of
https://github.com/storytold/RuntimeAudioImporter.git
synced 2026-10-09 00:09:48 +00:00
Solving a minor wave padding issue
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ class USoundWave* URuntimeAudioImporterLibrary::GetSoundWaveObject(const uint8*
|
|||||||
// RawPCMDataSize = WaveDataSize - 44 bytes (the header of the WAV data) = SampleDataSize
|
// RawPCMDataSize = WaveDataSize - 44 bytes (the header of the WAV data) = SampleDataSize
|
||||||
sw->RawPCMDataSize = WaveInfo.SampleDataSize;
|
sw->RawPCMDataSize = WaveInfo.SampleDataSize;
|
||||||
sw->RawPCMData = (uint8*)FMemory::Malloc(sw->RawPCMDataSize);
|
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)
|
// Callback Dispatcher OnProgress (not completely accurate implementation)
|
||||||
OnProgress_Internal(90);
|
OnProgress_Internal(90);
|
||||||
|
|||||||
Reference in New Issue
Block a user