Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow changes in sound output device #3488

Closed
phirestalker opened this issue Jan 15, 2022 · 10 comments
Closed

Follow changes in sound output device #3488

phirestalker opened this issue Jan 15, 2022 · 10 comments
Labels
enhancement New feature or request spice Spice/CocoaSpice related
Milestone

Comments

@phirestalker
Copy link

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 phirestalker added the enhancement New feature or request label Jan 15, 2022
@osy
Copy link
Contributor

osy commented Jan 15, 2022

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

@phirestalker
Copy link
Author

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?

@osy
Copy link
Contributor

osy commented Jan 16, 2022

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.

@phirestalker
Copy link
Author

phirestalker commented Jan 16, 2022

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

EDIT: haha missed the -S

@phirestalker
Copy link
Author

phirestalker commented Jan 16, 2022

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.

@osy osy added the spice Spice/CocoaSpice related label Jan 16, 2022
@osy
Copy link
Contributor

osy commented Jan 16, 2022

In that case I suspect the issue is with SPICE.

@phirestalker
Copy link
Author

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.

@osy
Copy link
Contributor

osy commented Jan 16, 2022

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

@osy osy added this to the Future milestone May 13, 2022
@osy osy modified the milestones: Future, v4.0 Aug 1, 2022
@wingcomm
Copy link

wingcomm commented Nov 8, 2022

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.

@fiore42
Copy link

fiore42 commented Jan 1, 2023

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!

@osy osy modified the milestones: Future, v4.2 Mar 5, 2023
@osy osy closed this as completed in 4120298 Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request spice Spice/CocoaSpice related
Projects
None yet
Development

No branches or pull requests

4 participants