UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Follow changes in sound output device

Open phirestalker opened this issue 2 years ago • 8 comments

When I connect my Bluetooth headset, most Mac apps will be able to output sound to it even if they are already running. The same applies when they are disconnected. Those apps will switch back to the original output with the OS.

UTM cannot do this. Similar apps (VirtualBox) also seem unable to handle changes in sound output device. Is this something that can be added? If this is something handled by the QEMU backend, let me know and I will take it up with them.

phirestalker avatar Jan 15 '22 23:01 phirestalker

Can you test with QEMU (brew install qemu) and see?

osy avatar Jan 15 '22 23:01 osy

I have never been able to get anything but a black screen. Is there somewhere I can find base settings for say a Debian Live CD to boot into with QEMU?

phirestalker avatar Jan 15 '22 23:01 phirestalker

You’ll want to go into VM settings and export the QEMU command from the QEMU page. Then you run with those parameters but remove the -S and anything related to SPICE.

osy avatar Jan 16 '22 00:01 osy

Ya, I tried that first. I will try and determine what is happening with my QEMU.

EDIT: haha missed the -S

phirestalker avatar Jan 16 '22 00:01 phirestalker

QEMU seems able to do it. One odd thing is that QEMU seems to ignore my audio chooser app called Soundsource. I set the sound device per-app, but QEMU ignores this setting and I have to change the system audio device.

I changed the audio device to bluetooth and QEMU played it through bluetooth. I changed it back to speakers, and it played on the speakers. For some reason UTM seems to ignore the audio changes. I will run one more deliberate test with UTM to be sure, but I believe I tried changing the system audio device too.

EDIT: yeap, UTM will not change audio output while a VM is running. I tried with the same VM image as with QEMU, so it is not the image.

phirestalker avatar Jan 16 '22 00:01 phirestalker

In that case I suspect the issue is with SPICE.

osy avatar Jan 16 '22 00:01 osy

Stupid question, but is there a way to use spice for video, but not for the audio? Are there some settings I can change, or would this require code changes?

If there are code changes required, could they be a band-aid solution for the short-term? I imagine spice folks to be slow in fixing "minor" issues.

phirestalker avatar Jan 16 '22 14:01 phirestalker

It can be possible but I’m not sure since we run QEMU in a separate process.

osy avatar Jan 16 '22 14:01 osy

Would love to see this as well! I need to be able to have the host audio output followed as well when I need to switch to bluetooth headphones.

wingcomm avatar Nov 08 '22 10:11 wingcomm

In that case I suspect the issue is with SPICE.

apologies if this is a silly question, but I can't find this issue on the SPICE page.

Are they aware of this issue? Which bug shall we track and petition on the SPICE board to solve this bug?

Thanks and Happy New Year!

fiore42 avatar Jan 01 '23 14:01 fiore42