There seems to be memory leaking when repeatedly creating and disposing the audio player.
I have stripped down a patch we have been using on a project. After hours of running the sound playback always broke at some point producing just crackling noises. Now investigating this issue i see memory leaking when the patch is running.
For each sound to play there is an audio player object with audio out created. When the playback ends this object is disposed.
Is there any flaw with the patch structure / logic itself or Vaudio?
I have tried with Asio4All drivers as well as Asio drivers provided by external USB Soundcard.
I am using gamma 2021.3.3 and the current VL.Audio nuget
VAUDIO-TEST.zip (448.8 KB)
EDIT: btw, you do not need to wait hours :P The demo patch breaks quite fast and the leak can be observed in realtime watching taskmanager.
Also it seems after some while, when GC runs peridically the time output on the audio engine stops for a brief moment: