wip fix recording audio loop
fix a video memory leak