How to record perfect loop? Video with audio, and then play this file endless

Hi, I am recording looped video with looped sound. Uploading in touchdesigner 2 files separate, 1 - video loop 2 - audio loop (both looped same lengths). So before rendering in TD they are playing perfectly looped - no delays. But when I’m rendering these 2 separate files in one video loop in TD (with any possible audio settings) I have perfect video loop, but audio in this file became with small gap (with a few milliseconds of silence).
How to render perfect loop? What kind of settings I need to choose?
Why every time after rendering perfect loop ( any software - Premiere, Davinci, Touchdesigner) you will have audio with small gap (with a few milliseconds of silence)?
audio
In this screenshot: 1 Green - is original wave file, which I am uploading in TD. 2 Blue - is audio after rendering it with video.