vhost-device/vhost-device-sound
Alyssa Ross f310f2c121 vhost-device-sound: test dbus-daemon from PATH
On my NixOS system, dbus-daemon is not at /usr/bin/dbus-daemon, but on
systems where it is, it should also be in PATH.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
2025-11-20 15:58:02 +02:00
..
src vhost-device-sound: test dbus-daemon from PATH 2025-11-20 15:58:02 +02:00
Cargo.toml build(deps): bump the rust-vmm group across 2 directories with 6 updates 2025-11-19 11:28:08 +02:00
CHANGELOG.md sound: Prepare v0.3.0 release 2025-10-31 12:29:22 +02:00
LICENSE-APACHE sound: fix symbolic links to license files 2024-01-10 11:23:08 +05:30
LICENSE-BSD-3-Clause sound: fix symbolic links to license files 2024-01-10 11:23:08 +05:30
README.md vhost-device-sound: Add GStreamer audio backend support 2025-10-09 15:17:27 +02:00

vhost-device-sound

Synopsis

   vhost-device-sound --socket <SOCKET> --backend <BACKEND>

Description

   A virtio-sound device using the vhost-user protocol.

Options

     --socket <SOCKET>
            vhost-user Unix domain socket path

     --backend <BACKEND>
            audio backend to be used [possible values: null, pipewire, alsa, gstreamer]

     -h, --help
            Print help

     -V, --version
            Print version

Examples

Launch the backend on the host machine:

host# vhost-device-sound --socket /tmp/snd.sock --backend null

With 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

License

This project is licensed under either of