coreaudio not working on MacOS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
OS: MacOS Catalina 10.15.2
qemu-system-x86_64 -version
QEMU emulator version 4.2.50 (v4.2.0-
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
Qemu install via brew: brew install qemu
---
I use following to install Ubuntu 18.04 desktop successfully:-
IMG_CD=
IMG_FILE=
MAC_ADDR=
qemu-system-x86_64 \
-no-user-config -nodefaults \
-show-cursor \
-name u64d01 \
-M q35,accel=
-cpu host -smp 4 -m 2048 \
-overcommit mem-lock=off \
-overcommit cpu-pm=off \
-rtc base=utc,clock=host \
\
-device virtio-tablet-pci \
-device virtio-vga \
\
-device virtio-
-drive id=ssd1,
\
-device virtio-
-netdev user,id=
\
-device ich9-intel-
-device hda-output,
-audiodev coreaudio,
\
-cdrom $IMG_CD
Removing the last -cdrom line Ubuntu desktop boot up and everything work perfectly except the audio.
I test with wav audio driver by replacing the -audiodev line as follow, which save the client audio to a wave file:
-audiodev wav,id=
I start the vm, open firefox, play a few video, then shutdown the vm. Then I can play the qemu.wav file and all the audio was recorded there.
However, I can't get audio directly with coreaudio.
First thing to check is whether you have any other audio applications installed, since there seems to be a long running issue whereby other applications can prevent QEMU from being able to output audio. See https:/ /www.emaculatio n.com/forum/ viewtopic. php?f=34& t=8848& sid=1e5fab3a083 47beb3b344be0f9 53221e& start=150# p60978 for a discussion on this.
Secondly does QEMU 4.1 audio work? There has been a report on list that there is an issue caused by conversion to the new backend audio APIs in 4.2 here: https:/ /lists. gnu.org/ archive/ html/qemu- devel/2020- 01/msg02142. html.