On Thu, 5 Oct 2023, Paolo Bonzini wrote:
On Thu, Oct 5, 2023 at 3:39 PM BALATON Zoltan <bala...@eik.bme.hu> wrote:
QEMU does not create default audio backends anymore if any of the
``-audiodev``, ``-audio`` or ``-nodefaults`` options are used on the
command line.
Maybe this needs further updating because -audio can now define the default
and is what should be used instead of -audiodev but this is not clear from
this documentation.
And while at it, maybe also mention machine audiodev property here as a
way to set audiodev of embedded devices.
Sure, here is my next attempt:
Much better, thanks. Maybe some more small clarifications as below:
===================
Using ``-audiodev`` to define the default audio backend (removed in 8.2)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If no audiodev property is specified, previous versions would use the
first ``-audiodev`` command line option as a fallback. Starting with
version 8.2, audio backends created with ``-audiodev`` will only be
used by clients (sound cards, machines with embedded sound hardware, VNC)
machines with embedded sound hardware that can be set with the audiodev
machine property
that refer to it in an ``audiodev=`` property.
In order to configure a default audio backend, use the ``-audio``
command line option without specifying a ``model``; while previous
versions of QEMU required a model, starting with version 8.2
required a model for -audio but starting with version 8.2
I'm still not sure users will get it without additional explanation
somewhere explicitly saying that if you now get an error with -audiodev
driver then you may now need to use -audio driver instead (hopefully the
error will say that) but this is now detailed enough to at least try to
explain that.
Regards,
BALATON Zoltan
QEMU does not require a model and will not create any sound card
in this case.
Note that the default audio backend must be configured on the command
line if the ``-nodefaults`` options is used.
===================