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:
Daniel Lamb
2018-05-07 15:49:00 -04:00
parent 212123c4ba
commit 0edbeb19b5
9 changed files with 20 additions and 4 deletions
@@ -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));