shairport-sync icon indicating copy to clipboard operation
shairport-sync copied to clipboard

[Problem]: delay when using vmware and a homepod mini

Open Noboxj opened this issue 5 months ago • 15 comments

What happened?

hello The pc has like a 0.8 seconds delay when music is playing on linux via vmware and my homepod mini.

Relevant log output

No response

System Information.

i'm using a windows 11 pc running ubuntu on vmware.

Configuration Information.

From "uname -a":

Linux Albixpc 6.5.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:

49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

From /etc/os-release:

Ubuntu 23.10

Shairport Sync Version String:

4.3.2-1-990c03bf0-AirPlay2-smi10-OpenSSL-Avahi-pw-soxr-sysconfdir:/etc

Command Line:

shairport-sync --displayConfig

Configuration File:

/etc/shairport-sync.conf

Configuration File Settings:

pw :
{
};

PulseAudio or PipeWire installed?

  • [X] Check if your system uses a Sound Server.

How did you install Shairport Sync?

Homebrew for Mac

Check previous issues

  • [X] Confirm

Noboxj avatar Jan 13 '24 17:01 Noboxj

sorry forgot to change i installed shairport-sync by a package manager

Noboxj avatar Jan 13 '24 17:01 Noboxj

Thanks for the post, and apologies for the delay.

If I understand your post properly, the problem is that the audio coming from Shairport Sync, running in Ubuntu 23.10 on a VMWare VM in a Windows 11 PC is about 0.8 seconds late and is out of sync with the audio coming from the source -- a HomePod mini.

I have noticed that the audio coming from a VMWare VM is always delayed, usually be a few 10s to 100s of milliseconds, and I believe that it's a limitation of the virtualisation. That being the case, I'm afraid there isn't anything that can easily be done about it.

mikebrady avatar Jan 16 '24 14:01 mikebrady

Ok thank you for the response Is there another way to use shairport-sync on windows 11 so that i could have way less delay ?

Noboxj avatar Jan 16 '24 16:01 Noboxj

Thanks. It needs Linux or Unix, and I have never tried the Linux compatibility subsystem in Windows. Maybe someone else has?

mikebrady avatar Jan 16 '24 17:01 mikebrady

I tried the linux subsystem in wodws but coudn't get it to work...

Noboxj avatar Jan 16 '24 18:01 Noboxj

I tried the linux subsystem in wodws but coudn't get it to work...

Thanks for the clarification.

mikebrady avatar Jan 16 '24 18:01 mikebrady

The problème there is with wsl is that it's pretty hard to connect your sound output to ubuntu. And that's the step i'm blocked at.

Noboxj avatar Jan 16 '24 22:01 Noboxj

Thanks. I’m away from computers until the end of the month, but after that I will experiment…

mikebrady avatar Jan 16 '24 22:01 mikebrady

I'll be happy to know if you've succeed. And if yes how you did it.

Noboxj avatar Jan 16 '24 22:01 Noboxj

Any news ?

Noboxj avatar Feb 28 '24 17:02 Noboxj

Apologies for the delay. It turns out that I don't have a machine that is capable of running Windows 11 with virtualisation, so I can't run wsl.

mikebrady avatar Mar 04 '24 13:03 mikebrady

Oh ok it's true that you must have a pretty recent machine to be able to run it. Still thanks for the response.

Noboxj avatar Mar 04 '24 14:03 Noboxj

Oh ok it's true that you must have a pretty recent machine to be able to run it. Still thanks for the response.

Apologies again for the delay. Apparently VMWare Fusion doesn't support virtualisation on Apple Silicon either. 😕

mikebrady avatar Mar 04 '24 14:03 mikebrady

WSL as well as VMWARE virtualize. Using both on the same host might be a cause for some performance issues and delays. WSL relies on Microsoft Hyper-V and in fact when activating Hyper-V even Windows technically runs kind of virtualized. Installing VMware on top leads to some double virtualization. You could try Ubuntu on Hyper-V or VMWARE on a fresh installed clean slate Windows.

mriwhh avatar Mar 08 '24 06:03 mriwhh

Ok thanks i'll give it a shot this weekend

Noboxj avatar Mar 08 '24 06:03 Noboxj