Skip to content

Commit 4846dec

Browse files
SetSound inside the game thread
1 parent 861d4bb commit 4846dec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Convai/Private/ConvaiAudioStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ void UConvaiAudioStreamer::PlayVoiceData(uint8* VoiceData, uint32 VoiceDataSize,
211211
UE_LOG(ConvaiAudioStreamerLog, Log, TEXT("New SampleRate: %d"), SampleRate);
212212
UE_LOG(ConvaiAudioStreamerLog, Log, TEXT("New Channels: %d"), NumChannels);
213213

214-
SetSound(SoundWaveProcedural);
215214
AsyncTask(ENamedThreads::GameThread, [this]
216215
{
216+
SetSound(SoundWaveProcedural);
217217
Play();
218218
});
219219
}

0 commit comments

Comments
 (0)