QEMU/Devices/Sound cards

Sound cards can be added easily to QEMU virtual machines easily through using  or the removed since QEMU 7.0   argument.

QEMU 7 and above:
You can add a card with the following:

qemu-system-(arch) -audio driver={output_driver},model={sound_card_model},id={id}

output_driver and id are the same as -audiodev {output_driver},{id} in older versions with their respective arguments.

QEMU versions before 7.0:
You can add a card with the following:

qemu-system-(arch) -soundhw (sound_card_model)