Audio File In over network freezes TouchDesigner

Hi!

I have three channels (main, ambient, effect) and I am playing mp3 files over a local network. Sometimes lots is going on on the network and TD becomes unresponsive loading the files. (Main audio track is stopped, no visuals, UI is unresponsive). This takes up to 3s in the performance monitor. This is exacerbated when lots of effects are played in short order.

However, I already set open time to 0ms and also playing around with pre-read length does not seem to make a difference.

I am trying to avoid loading the files separately as loading with webclient dat or python requests also seems to block TD.

Any advice or pointers at what I could look at?

Best,
Marten

I created a testcase for this with a small python flask server to simulate slower loading of audio files. Even though open timeout is 0, TD totally locks up.
Is there a way to know if an audio file has been loaded?

simulate_network_download.zip (18.1 KB)

Thanks, I’ll take a look