Skip to content

Commit

Permalink
misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed Sep 2, 2019
1 parent f4358cc commit aad0682
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/CoreUtility/Private/CoreUtilityBPLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ void UCoreUtilityBPLibrary::SetSoundWaveFromWavBytes(USoundWaveProcedural* InSou

if (WaveInfo.ReadWaveInfo(InBytes.GetData(), InBytes.Num()))
{
InSoundWave->ResetAudio();

//Set duration/etc
//copy header info
int32 DurationDiv = *WaveInfo.pChannels * *WaveInfo.pBitsPerSample * *WaveInfo.pSamplesPerSec;
if (DurationDiv)
{
Expand All @@ -153,6 +151,7 @@ void UCoreUtilityBPLibrary::SetSoundWaveFromWavBytes(USoundWaveProcedural* InSou
InSoundWave->bLooping = false;
InSoundWave->SoundGroup = ESoundGroup::SOUNDGROUP_Default;

//Queue actual audio data
InSoundWave->QueueAudio(WaveInfo.SampleDataStart, WaveInfo.SampleDataSize);
}
}
Expand Down

0 comments on commit aad0682

Please sign in to comment.