getnamo / SocketIOClient-Unreal

Socket.IO client plugin for the Unreal Engine.
Other
899 stars 240 forks source link

Assertion Failed error while converting SoundWave to Bytes using ToBytes Node #416

Open mubashirrehman9 opened 7 months ago

mubashirrehman9 commented 7 months ago

I am using audio capture to record sound input from mic and send it to the nodeJS server using socket.io. I did it using a third party plug-in to convert sound wave to bytes that works fine but is not suitable for our use case. So, using ToBytes node from CUBluePrintLibrary.cpp, as soon as the execution hits it throws this assertion failed error. image image

getnamo commented 6 months ago

Conversion function is found here: https://github.com/getnamo/SocketIOClient-Unreal/blob/master/Source/CoreUtility/Private/CUBlueprintLibrary.cpp#L217 Ensure channels and sample rates are filled and that the soundwave is not null.