vhost-device-sound --socket <SOCKET> --backend <BACKEND>
A virtio-sound device using the vhost-user protocol.
--socket <SOCKET>
vhost-user Unix domain socket path
--socket-fd <FD>
listening vhost-user Unix domain socket file descriptor
(e.g. from a service manager)
--backend <BACKEND>
audio backend to be used [possible values: null, pipewire, alsa, gstreamer]
-h, --help
Print help
-V, --version
Print version
Launch the backend on the host machine:
host# vhost-device-sound --socket /tmp/snd.sock --backend nullWith QEMU, you can add a virtio device that uses the backend's socket with the following flags:
-chardev socket,id=vsnd,path=/tmp/snd.sock \
-device vhost-user-snd-pci,chardev=vsnd,id=snd
This project is licensed under either of
- Apache License, Version 2.0
- BSD-3-Clause License