wslg icon indicating copy to clipboard operation
wslg copied to clipboard

Extreme audio latency

Open codeofdusk opened this issue 4 years ago • 4 comments

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Win 11 21H2 (22000.348)
Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL] Debian 11 Bullseye
Your WSLg version: [Open 'Apps and Features' and check the version of 'Windows Subsystem for Linux GUI app support', e.g: 0.2.3.13] 1.0.26

Steps to reproduce

  1. Install sox: apt install sox
  2. Loopback input to output: sox -q -d -d
  3. Speak or make sounds into the microphone.

Expected behavior

Sounds are echoed back near instantly.

Actual behavior

Sounds are echoed back sometimes up to ten seconds later, including several seconds of no audio. Seems like audio only starts once a buffer has reached a certain (much too large) size?

Additional context

Can also reproduce sometimes with Emacspeak (with playback only) though the sox test case is more minimal and occurs more regularly.

codeofdusk avatar Dec 09 '21 17:12 codeofdusk

Cc @craigloewen-msft.

codeofdusk avatar Dec 09 '21 17:12 codeofdusk

Any updates on this?

devinprater avatar Aug 18 '23 00:08 devinprater

audio device init also takes ages (sometimes).
i'm working on a game in wsl and it sometimes gets stuck on the loading screen for like 2 minutes acquiring an audio device handle
After that, the sound is weird and delayed by 5-15 seconds

griffi-gh avatar Jan 28 '24 13:01 griffi-gh

I'm going to awkwardly report that this issue - including with Emacspeak - remains, and I'm willing to try and pull logs if there're good sources for them

krzysz00 avatar Feb 07 '25 07:02 krzysz00