vhost-device/vhost-device-sound
Manos Pitsidianakis de8ed1baea sound: move CLI arg types to lib submodule
Currently, the main CLI struct type is defined in src/main.rs thus
inaccessible when using the crate as a library. Move it to its own
module under src/args.rs

This will be useful for followup commits that will use src/args.rs
directly to generate manual pages using clap_mangen

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
2025-04-15 14:25:32 +05:30
..
src sound: move CLI arg types to lib submodule 2025-04-15 14:25:32 +05:30
Cargo.toml build(deps): bump the non-rust-vmm group across 2 directories with 46 updates 2025-04-03 11:41:01 +02:00
CHANGELOG.md vhost-device-sound: pipewire: Fix rand module imports 2025-02-12 14:11:29 +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 sound: promote to main workspace 2024-01-03 11:16:07 +05:30
rustfmt.toml sound: promote to main workspace 2024-01-03 11:16:07 +05:30

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]

     -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