pop-os / pipewire

Packaging fork
https://gitlab.freedesktop.org/pipewire/pipewire
Other
7 stars 3 forks source link

VirtualBox sending audio to wrong audio device on Alsa #5

Open keftie22 opened 2 years ago

keftie22 commented 2 years ago

Distribution (run cat /etc/os-release):

Pop OS 22.04 LTS

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

virtualbox:
  Installed: 6.1.32-dfsg-1pop0~1647869625~22.04~08c00d8
  Candidate: 6.1.32-dfsg-1pop0~1647869625~22.04~08c00d8
  Version table:
 *** 6.1.32-dfsg-1pop0~1647869625~22.04~08c00d8 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     6.1.32-dfsg-1build1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
pipewire:
  Installed: 0.3.50-1pop1~1650897132~22.04~6b072d5
  Candidate: 0.3.50-1pop1~1650897132~22.04~6b072d5
  Version table:
 *** 0.3.50-1pop1~1650897132~22.04~6b072d5 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     0.3.48-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
pipewire-pulse:
  Installed: 0.3.50-1pop1~1650897132~22.04~6b072d5
  Candidate: 0.3.50-1pop1~1650897132~22.04~6b072d5
  Version table:
 *** 0.3.50-1pop1~1650897132~22.04~6b072d5 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     0.3.48-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
pipewire:
  Installed: 0.3.50-1pop1~1650897132~22.04~6b072d5
  Candidate: 0.3.50-1pop1~1650897132~22.04~6b072d5
  Version table:
 *** 0.3.50-1pop1~1650897132~22.04~6b072d5 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     0.3.48-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
wireplumber:
  Installed: 0.4.9-1pop1~1649281136~22.04~aa1f50e
  Candidate: 0.4.9-1pop1~1649281136~22.04~aa1f50e
  Version table:
 *** 0.4.9-1pop1~1649281136~22.04~aa1f50e 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     0.4.8-4 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

Issue/Bug Description:

VirtualBox by default uses "ASLA audio driver" for its audio output. When this option is used, the audio from the virtual machine comes out of my laptop instead of my headphones like every other program does. When I set this audio driver to "PulseAudio" the sound now properly comes out of my headphones.

image

Steps to reproduce (if you know):

  1. Install Virtualbox and set up a virtual machine
  2. Leave the default audio driver setting to ALSA audio driver
  3. Set your system audio output device to something non-default such as headphones
  4. Open the virtual machine and try to play audio through it

Expected behavior:

That the audio device selected in the host OS's system settings be respected by VirtualBox by default.

Other Notes:

I notice that pipewire-alsa is not installed or available in the repos. I do recall seeing this package used in arch at some point so maybe it missing could be a cause here?

mmstick commented 2 years ago

Wouldn't this be an issue with VirtualBox? I'm not sure what I could do from Pipewire to fix this.

keftie22 commented 2 years ago

I don't know. The extent that I know is that this wasn't an issue under pulseaudio on 21.10 and is now an issue under pipewire in 22.04. I don't know which is at fault.

mmstick commented 2 years ago

Is this still an issue with the latest version of Pipewire?

keftie22 commented 2 years ago

Checked in a clean install and yes it is still an issue.