Im trying to create a Sound from bytes loaded from the dll assembly but I keep on getting an invalid param error, any ideas?
byte[] bytes = EmbeddedAssetBundle.LoadFromAssembly(Assembly.GetExecutingAssembly(), location);
CREATESOUNDEXINFO exInfo = new CREATESOUNDEXINFO()
{
cbsize = System.Runtime.InteropServices.Marshal.SizeOf(typeof(CREATESOUNDEXINFO))
};
RuntimeManager.CoreSystem.createSound(bytes, MODE._3D | MODE.LOOP_NORMAL | MODE.OPENMEMORY, ref exInfo, out Sound sound);