You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixup for deterministic audio generation issue.
Submitted on behalf of Rich.Whitehouse #rb Rich.Whitehouse, Daniel.Lamb, Aaron.McLeran #jira nojira #test prefilght automated test. [CL 4055518 by Daniel Lamb in Dev-Core branch]
This commit is contained in:
@@ -593,6 +593,8 @@ bool FXAudio2SoundSource::Init(FWaveInstance* InWaveInstance)
|
||||
|
||||
Update();
|
||||
|
||||
check(!InWaveInstance->WaveData->RawPCMData || InWaveInstance->WaveData->RawPCMDataSize);
|
||||
|
||||
// Initialize the total number of frames of audio for this sound source
|
||||
int32 NumBytes = InWaveInstance->WaveData->RawPCMDataSize;
|
||||
NumTotalFrames = NumBytes / (Buffer->NumChannels * sizeof(int16));
|
||||
|
||||
Reference in New Issue
Block a user