qemu should close sound device when no more needs.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
I use alsa directly or via pulseaudio on qemu.
And I use xmms2 as well as qemu.
When I use alsa, one of xmms2 or qemu can play sound.
When I use pulseaudio with qemu and pulseaudio -k, and pulseaudio --start,
qemu can't play sound.
I think that:
- qemu should open sound device when needs.
- qemu should close sound device when no more needs.
One of xmms2 or qemu can play sound, but both of them rarely play sound
at the same time.
qemu occurs error on pulseaudio -k, but once close and open the device,
the error will be recovered, I hope.
Host: slackware64 14.1, linux kernel 3.14.2
Qemu: 2.0.0
QEMU_AUDIO_DRV=pa /usr/local/
Guest: Windows 8.1 x64
This will not work if qemu is chrooted, because audio devices (/dev) aren't usually available there.
So at least a naive approach should not be used. If nothing else, it should be an option.
But really, with pulseaudio backend, there should be no need to go this route and to add new code.