Audio quality drops when phone is off

The same happens when streaming audio from PC to Android. A few moments after the screen is off packet loss occurs and audio becomes choppy (latency on the graph also increases a lot).

Tweaking energy saving settings doesn’t seem to help (I’ve already allowed AudioRelay to work in the background, but the issue persists). Maybe there’s a way to prevent the device from sleeping when streaming is active? When screen is on (and app is opened) everything works great.

Device A:

Windows 11 (connected using Ethernet cable)

Device B:

Honor Pad 10, Android 16 (connected using WiFi 5Ghz)

AudioRelay 1.0 alpha 9