On 04/24/2018 12:35 PM, Xi Ruoyao wrote:
On 2018-04-22 10:47 -0500, Bruce Dubbs wrote:

I think that a change to qemu would be sufficient.  You do not need
/etc/asound.conf because ~/.asoundrc should be sufficient.

Just add the contents of that file to the qemu configuration:

# Default to PulseAudio
pcm.!default {
      type pulse
      hint {
          show on
          description "Default ALSA Output (currently PulseAudio Sound
Server)"
      }
}

ctl.!default {
      type pulse
}

I suspect the hint is not strictly needed.

Does anyone want to test this and write a patch to the qemu xml page?

    -- Bruce

I think this should be put into pulseaudio or alsa-plugins page.
QEMU is not the only software with this issue.

If we want to change QEMU, we can use --audio-drv-list=pa.
And it seems using --audio-drv-list=alsa along with ALSA pulseaudio
plugin (sink) results less audio quality than using --audio-drv-list=pa
directly.  (I don't know why.)


As a alsa user, I would prefer "--audio-drv-list=pa,alsa", as this would satisfy both the pulseaudio and the alsa users. No need to make a decision here.

Bye
Tim



--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to